Closed kastolars closed 4 years ago
Bytes []byte
Hex string
AurumPrivateKey
New
Key
Bytes
privateKey.Encode
Hex
hex.EncodeToString
Completed
Bytes []byte
andHex string
fields toAurumPrivateKey
structNew
, which creates anAurumPrivateKey
structKey
field is populated by generating a random private key (look here for to see how this is done)Bytes
field set to the return ofprivateKey.Encode
with theKey
field as an argumentHex
field set to the return ofhex.EncodeToString
withBytes
field as argumentBytes
field is the encoded version ofKey
andHex
field is hex-encoded version ofBytes
field