From 7fbaf2f91be3fa96c4b21c2f4bd718daa094e74b Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Tue, 6 Nov 2018 21:59:22 +0000 Subject: [PATCH] remove unsafe ZERO_KEY and deprecated ONE --- src/key.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/key.rs b/src/key.rs index c5d7b33..4f5c11e 100644 --- a/src/key.rs +++ b/src/key.rs @@ -51,19 +51,6 @@ impl str::FromStr for SecretKey { } } -/// The number 1 encoded as a secret key -/// Deprecated; `static` is not what I want; use `ONE_KEY` instead -pub static ONE: SecretKey = SecretKey([0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 1]); - -/// The number 0 encoded as a secret key -pub const ZERO_KEY: SecretKey = SecretKey([0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0]); - /// The number 1 encoded as a secret key pub const ONE_KEY: SecretKey = SecretKey([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,