Bitcoinex.Secp256k1.PrivateKey (bitcoinex v0.1.6) View Source
Contains an integer used to create a Point and sign.
Link to this section Summary
Functions
new creates a private key from an integer
returns the base58check encoded private key as a string assumes all keys are compressed
serialize_private_key serializes a private key into hex
sign returns an ECDSA signature using the privkey and z where privkey is a PrivateKey object and z is an integer. The nonce is derived using RFC6979.
to_point calculate Point from private key
wif returns the base58check encoded private key as a string assumes all keys are compressed
Link to this section Types
Specs
t() :: %Bitcoinex.Secp256k1.PrivateKey{d: non_neg_integer()}
Link to this section Functions
Specs
new(non_neg_integer()) :: {:ok, t()}
new creates a private key from an integer
Specs
returns the base58check encoded private key as a string assumes all keys are compressed
Specs
Specs
serialize_private_key serializes a private key into hex
Specs
sign(t(), integer()) :: Bitcoinex.Secp256k1.Signature.t()
sign returns an ECDSA signature using the privkey and z where privkey is a PrivateKey object and z is an integer. The nonce is derived using RFC6979.
Specs
to_point(t()) :: Bitcoinex.Secp256k1.Point.t()
to_point calculate Point from private key
Specs
wif!(t(), Bitcoinex.Network.network_name()) :: String.t()
wif returns the base58check encoded private key as a string assumes all keys are compressed