Documentation
¶
Overview ¶
Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
Index ¶
- Constants
- func DecryptPrivateKey(cipherVersion string, encryptedValue string, password string) ([]byte, error)
- func DerivePreimageBaseKey(seed []byte) ([]byte, error)
- func DerivePublicKey(seedHexString string, network lightspark_crypto.BitcoinNetwork, ...) (string, error)
- func DeriveXpriv(seed []byte, path string) (*hdkeychain.ExtendedKey, error)
- func ECDH(seedBytes []byte, network lightspark_crypto.BitcoinNetwork, otherPubKey string) (string, error)
- func GeneratePreimageAndPaymentHash(key []byte, nonce []byte) ([]byte, []byte, error)
- func GeneratePreimageNonce() ([]byte, error)
- func Sha256HexString(str string) string
Constants ¶
View Source
const KEY_LEN = 32
Variables ¶
This section is empty.
Functions ¶
func DecryptPrivateKey ¶
func DerivePreimageBaseKey ¶ added in v0.16.0
func DerivePublicKey ¶
func DerivePublicKey(seedHexString string, network lightspark_crypto.BitcoinNetwork, derivationPath string) (string, error)
func DeriveXpriv ¶ added in v0.16.0
func DeriveXpriv(seed []byte, path string) (*hdkeychain.ExtendedKey, error)
func ECDH ¶
func ECDH(seedBytes []byte, network lightspark_crypto.BitcoinNetwork, otherPubKey string) (string, error)
func GeneratePreimageAndPaymentHash ¶ added in v0.16.0
func GeneratePreimageNonce ¶ added in v0.16.0
func Sha256HexString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.