StdSecureNet

Undocumented in source.

Constructors

this
this()
Undocumented in source.
this
this(shared(StdSecureNet) other_net)
Undocumented in source.

Members

Functions

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.
__expose
void __expose(ubyte[] privkey)
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.
createKeyPair
void createKeyPair(ubyte[] seckey)
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.
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.
eraseKey
void eraseKey()
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)
getPubkey
Pubkey getPubkey(const(ubyte[]) seckey)
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.
pubkey
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.
verify
bool verify(Fingerprint message, Signature signature, Pubkey pubkey)
Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

SecretMethods
interface SecretMethods

This function returns If method is SIGN the signed message or If method is DERIVE it returns the derived privat key

Variables

_secret
SecretMethods _secret;
Undocumented in source.
crypt
NativeSecp256k1 crypt;
Undocumented in source.

Inherited Members

From StdHashNet

HASH_SIZE
enum HASH_SIZE;
Undocumented in source.
hashSize
uint hashSize()
Undocumented in source. Be warned that the author may not have intended to support it.
rawCalcHash
immutable(Buffer) rawCalcHash(const(ubyte[]) data)
Undocumented in source. Be warned that the author may not have intended to support it.
calcHash
Fingerprint calcHash(const(ubyte[]) data)
Undocumented in source. Be warned that the author may not have intended to support it.
HMAC
immutable(Buffer) HMAC(const(ubyte[]) data)
Undocumented in source. Be warned that the author may not have intended to support it.
calcHash
Fingerprint calcHash(const(Document) doc)
Undocumented in source. Be warned that the author may not have intended to support it.
hashname
enum hashname;
Undocumented in source.
multihash
string multihash()
Undocumented in source. Be warned that the author may not have intended to support it.

From SecureNet

Signed
alias Signed = Tuple!(Signature, "signature", Fingerprint, "message")
Undocumented in source.
pubkey
Pubkey pubkey()
Undocumented in source.
verify
bool verify(Fingerprint message, Signature signature, Pubkey pubkey)
Undocumented in source.
verify
bool verify(Document doc, Signature signature, Pubkey pubkey)
Undocumented in source. Be warned that the author may not have intended to support it.
verify
bool verify(T pack, 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.
sign
Signed sign(Document doc)
Undocumented in source. Be warned that the author may not have intended to support it.
sign
Signed sign(T pack)
Undocumented in source. Be warned that the author may not have intended to support it.
createKeyPair
void createKeyPair(ubyte[] privkey)
Undocumented in source.
generateKeyPair
void generateKeyPair(const(char[]) passphrase, const(char[]) salt, void delegate(scope const(ubyte[]) data) @(safe) dg)
Undocumented in source.
eraseKey
void eraseKey()
Undocumented in source.
ECDHSecret
immutable(ubyte[]) ECDHSecret(const(ubyte[]) seckey, const(Pubkey) pubkey)
Undocumented in source.
ECDHSecret
immutable(ubyte[]) ECDHSecret(const(Pubkey) pubkey)
Undocumented in source.
getPubkey
Pubkey getPubkey(const(ubyte[]) seckey)
Undocumented in source.
derive
void derive(string tweak_word, shared(SecureNet) secure_net)
Undocumented in source.
derive
void derive(const(ubyte[]) tweak_code, shared(SecureNet) secure_net)
Undocumented in source.
derive
void derive(string tweak_word, ubyte[] tweak_privkey)
Undocumented in source.
derive
void derive(const(ubyte[]) tweak_code, ubyte[] tweak_privkey)
Undocumented in source.
derive
const(SecureNet) derive(const(ubyte[]) tweak_code)
Undocumented in source.
derive
const(SecureNet) derive(B tweak_code)
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.
derivePubkey
Pubkey derivePubkey(string tweak_word)
Undocumented in source.
clone
SecureNet clone()
Undocumented in source.

Meta