crypto

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved

Index

Constants

View Source
const KEY_LEN = 32

Variables

This section is empty.

Functions

func DecryptPrivateKey

func DecryptPrivateKey(cipherVersion string, encryptedValue string,
	password string) ([]byte, error)

func DerivePreimageBaseKey added in v0.16.0

func DerivePreimageBaseKey(seed []byte) ([]byte, error)

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 GeneratePreimageAndPaymentHash(key []byte, nonce []byte) ([]byte, []byte, error)

func GeneratePreimageNonce added in v0.16.0

func GeneratePreimageNonce() ([]byte, error)

func Sha256HexString

func Sha256HexString(str string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL