Documentation ¶
Index ¶
- func PrivateKeyFromBytes(typev ogcrypto_interface.CryptoType, bytes []byte) ogcrypto_interface.PrivateKey
- func PrivateKeyFromRawBytes(bytes []byte) ogcrypto_interface.PrivateKey
- func PrivateKeyFromString(value string) (priv ogcrypto_interface.PrivateKey, err error)
- func PublicKeyFromBytes(typev ogcrypto_interface.CryptoType, bytes []byte) ogcrypto_interface.PublicKey
- func PublicKeyFromRawBytes(bytes []byte) ogcrypto_interface.PublicKey
- func PublicKeyFromSignature(sighash og_interface.Hash, signature *ogcrypto_interface.Signature) (pubKey ogcrypto_interface.PublicKey, err error)
- func PublicKeyFromString(value string) (pub ogcrypto_interface.PublicKey, err error)
- func PublicKeyFromStringWithCryptoType(ct, pkstr string) (pub ogcrypto_interface.PublicKey, err error)
- func Ripemd160(bytes []byte) []byte
- func Sha256(bytes []byte) []byte
- func SignatureFromBytes(typev ogcrypto_interface.CryptoType, bytes []byte) ogcrypto_interface.Signature
- func SignatureFromRawBytes(bytes []byte) ogcrypto_interface.Signature
- func SignatureValues(sig []byte) (r, s, v *big.Int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateKeyFromBytes ¶
func PrivateKeyFromBytes(typev ogcrypto_interface.CryptoType, bytes []byte) ogcrypto_interface.PrivateKey
func PrivateKeyFromRawBytes ¶
func PrivateKeyFromRawBytes(bytes []byte) ogcrypto_interface.PrivateKey
func PrivateKeyFromString ¶
func PrivateKeyFromString(value string) (priv ogcrypto_interface.PrivateKey, err error)
func PublicKeyFromBytes ¶
func PublicKeyFromBytes(typev ogcrypto_interface.CryptoType, bytes []byte) ogcrypto_interface.PublicKey
func PublicKeyFromRawBytes ¶
func PublicKeyFromRawBytes(bytes []byte) ogcrypto_interface.PublicKey
func PublicKeyFromSignature ¶
func PublicKeyFromSignature(sighash og_interface.Hash, signature *ogcrypto_interface.Signature) (pubKey ogcrypto_interface.PublicKey, err error)
func PublicKeyFromString ¶
func PublicKeyFromString(value string) (pub ogcrypto_interface.PublicKey, err error)
func PublicKeyFromStringWithCryptoType ¶
func PublicKeyFromStringWithCryptoType(ct, pkstr string) (pub ogcrypto_interface.PublicKey, err error)
func SignatureFromBytes ¶
func SignatureFromBytes(typev ogcrypto_interface.CryptoType, bytes []byte) ogcrypto_interface.Signature
func SignatureFromRawBytes ¶
func SignatureFromRawBytes(bytes []byte) ogcrypto_interface.Signature
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
ed25519
Package edwards25519 implements operations in GF(2**255-19) and on an Edwards curve that is isomorphic to curve25519.
|
Package edwards25519 implements operations in GF(2**255-19) and on an Edwards curve that is isomorphic to curve25519. |
secp256k1
Package secp256k1 wraps the bitcoin secp256k1 C library.
|
Package secp256k1 wraps the bitcoin secp256k1 C library. |
Click to show internal directories.
Click to hide internal directories.