- SecretMethods
interface SecretMethods
This function
returns
If method is SIGN the signed message or
If method is DERIVE it returns the derived privat key
- _secret
SecretMethods _secret;
Undocumented in source.
- pubkey
Pubkey pubkey()
Undocumented in source. Be warned that the author may not have intended to support it.
- hmacPubkey
Buffer hmacPubkey()
Undocumented in source. Be warned that the author may not have intended to support it.
- derivePubkey
Pubkey derivePubkey(string tweak_word)
Undocumented in source. Be warned that the author may not have intended to support it.
- derivePubkey
Pubkey derivePubkey(const(ubyte[]) tweak_code)
Undocumented in source. Be warned that the author may not have intended to support it.
- crypt
NativeSecp256k1 crypt;
Undocumented in source.
- verify
bool verify(Fingerprint message, Signature signature, Pubkey pubkey)
Undocumented in source. Be warned that the author may not have intended to support it.
- sign
Signature sign(Fingerprint message)
Undocumented in source.
- derive
void derive(string tweak_word, ubyte[] tweak_privkey)
Undocumented in source. Be warned that the author may not have intended to support it.
- derive
void derive(const(ubyte[]) tweak_code, ubyte[] tweak_privkey)
Undocumented in source.
- derive
void derive(string tweak_word, shared(SecureNet) secure_net)
Undocumented in source. Be warned that the author may not have intended to support it.
- derive
void derive(const(ubyte[]) tweak_code, shared(SecureNet) secure_net)
Undocumented in source.
- derive
const(SecureNet) derive(const(ubyte[]) tweak_code)
Undocumented in source. Be warned that the author may not have intended to support it.
- createKeyPair
void createKeyPair(ubyte[] seckey)
Undocumented in source.
- __expose
void __expose(ubyte[] privkey)
Undocumented in source. Be warned that the author may not have intended to support it.
- generateKeyPair
void generateKeyPair(const(char[]) passphrase, const(char[]) salt, void delegate(scope const(ubyte[]) data) @(safe) dg)
- ECDHSecret
immutable(ubyte[]) ECDHSecret(const(ubyte[]) seckey, const(Pubkey) pubkey)
Undocumented in source. Be warned that the author may not have intended to support it.
- ECDHSecret
immutable(ubyte[]) ECDHSecret(const(Pubkey) pubkey)
Undocumented in source. Be warned that the author may not have intended to support it.
- getPubkey
Pubkey getPubkey(const(ubyte[]) seckey)
Undocumented in source. Be warned that the author may not have intended to support it.
- clone
SecureNet clone()
Undocumented in source. Be warned that the author may not have intended to support it.
- eraseKey
void eraseKey()
Undocumented in source. Be warned that the author may not have intended to support it.