Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveScalar ¶
func DeriveScalar(public *curve.Secp256k1Point, chaining []byte, i uint32) (*curve.Secp256k1Scalar, []byte, error)
DeriveScalar uses a public point, chaining value, and index, to derive a scalar and chaining value.
This scalar should be added to the secret key.
If an error is returned, this means that this index will not be useable, and another index should be used instead.
This function will panic if an index for a hardened key is used.
See: https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.