Documentation ¶
Index ¶
- Constants
- func CreateRedeemScriptV2(userKey, muunKey *hdkeychain.ExtendedKey, network *chaincfg.Params) ([]byte, error)
- func CreateRedeemScriptV3(userKey, muunKey *hdkeychain.ExtendedKey, network *chaincfg.Params) ([]byte, error)
- func CreateWitnessScriptV3(userKey, muunKey *hdkeychain.ExtendedKey, network *chaincfg.Params) ([]byte, error)
- func CreateWitnessScriptV4(userKey, muunKey *hdkeychain.ExtendedKey, network *chaincfg.Params) ([]byte, error)
- func CreateWitnessScriptV5(userKey, muunKey *hdkeychain.ExtendedKey) ([]byte, error)
- type WalletAddress
- func Create(version int, userKey, muunKey *hdkeychain.ExtendedKey, path string, ...) (*WalletAddress, error)
- func CreateAddressV1(userKey *hdkeychain.ExtendedKey, path string, network *chaincfg.Params) (*WalletAddress, error)
- func CreateAddressV2(userKey, muunKey *hdkeychain.ExtendedKey, path string, ...) (*WalletAddress, error)
- func CreateAddressV3(userKey, muunKey *hdkeychain.ExtendedKey, path string, ...) (*WalletAddress, error)
- func CreateAddressV4(userKey, muunKey *hdkeychain.ExtendedKey, path string, ...) (*WalletAddress, error)
- func CreateAddressV5(userKey, muunKey *hdkeychain.ExtendedKey, path string, ...) (*WalletAddress, error)
- func New(version int, derivationPath string, address string) *WalletAddress
Constants ¶
View Source
const ( V1 = 1 V2 = 2 V3 = 3 V4 = 4 V5 = 5 SubmarineSwapV1 = 101 SubmarineSwapV2 = 102 IncomingSwap = 201 )
Variables ¶
This section is empty.
Functions ¶
func CreateRedeemScriptV2 ¶
func CreateRedeemScriptV2(userKey, muunKey *hdkeychain.ExtendedKey, network *chaincfg.Params) ([]byte, error)
func CreateRedeemScriptV3 ¶
func CreateRedeemScriptV3(userKey, muunKey *hdkeychain.ExtendedKey, network *chaincfg.Params) ([]byte, error)
func CreateWitnessScriptV3 ¶
func CreateWitnessScriptV3(userKey, muunKey *hdkeychain.ExtendedKey, network *chaincfg.Params) ([]byte, error)
func CreateWitnessScriptV4 ¶
func CreateWitnessScriptV4(userKey, muunKey *hdkeychain.ExtendedKey, network *chaincfg.Params) ([]byte, error)
func CreateWitnessScriptV5 ¶ added in v0.9.0
func CreateWitnessScriptV5(userKey, muunKey *hdkeychain.ExtendedKey) ([]byte, error)
Types ¶
type WalletAddress ¶
type WalletAddress struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(version int, userKey, muunKey *hdkeychain.ExtendedKey, path string, network *chaincfg.Params) (*WalletAddress, error)
func CreateAddressV1 ¶
func CreateAddressV1(userKey *hdkeychain.ExtendedKey, path string, network *chaincfg.Params) (*WalletAddress, error)
CreateAddressV1 returns a P2PKH WalletAddress from a publicKey for use in TransactionSchemeV1
func CreateAddressV2 ¶
func CreateAddressV2(userKey, muunKey *hdkeychain.ExtendedKey, path string, network *chaincfg.Params) (*WalletAddress, error)
func CreateAddressV3 ¶
func CreateAddressV3(userKey, muunKey *hdkeychain.ExtendedKey, path string, network *chaincfg.Params) (*WalletAddress, error)
func CreateAddressV4 ¶
func CreateAddressV4(userKey, muunKey *hdkeychain.ExtendedKey, path string, network *chaincfg.Params) (*WalletAddress, error)
CreateAddressV4 returns a P2WSH WalletAddress from a user HD-pubkey and a Muun co-signing HD-pubkey.
func CreateAddressV5 ¶ added in v0.9.0
func CreateAddressV5(userKey, muunKey *hdkeychain.ExtendedKey, path string, network *chaincfg.Params) (*WalletAddress, error)
CreateAddressV5 returns a P2TR WalletAddress using Musig with the signing and cosigning keys.
func (*WalletAddress) Address ¶
func (a *WalletAddress) Address() string
func (*WalletAddress) DerivationPath ¶
func (a *WalletAddress) DerivationPath() string
func (*WalletAddress) Version ¶
func (a *WalletAddress) Version() int
Click to show internal directories.
Click to hide internal directories.