bursa

package module
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

bursa

Bursa Logo

Programmatic Cardano Wallet

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountKey

func GetAccountKey(rootKey bip32.XPrv, num uint) bip32.XPrv

func GetAddress

func GetAddress(
	accountKey bip32.XPrv,
	net string,
	num uint32,
) *address.BaseAddress

func GetExtendedPrivateKey

func GetExtendedPrivateKey(privateKey []byte, publicKey []byte) bip32.XPrv

func GetKeyFile added in v0.2.0

func GetKeyFile(keyFile KeyFile) string

func GetPaymentKey

func GetPaymentKey(accountKey bip32.XPrv, num uint32) bip32.XPrv

func GetRootKey

func GetRootKey(entropy []byte, password []byte) bip32.XPrv

func GetRootKeyFromMnemonic

func GetRootKeyFromMnemonic(mnemonic string) (bip32.XPrv, error)

func GetStakeKey

func GetStakeKey(accountKey bip32.XPrv, num uint32) bip32.XPrv

func NewMnemonic

func NewMnemonic() (string, error)

Types

type KeyFile added in v0.2.0

type KeyFile struct {
	Type        string `json:"type"`
	Description string `json:"description"`
	CborHex     string `json:"cborHex"`
}

func GetPaymentExtendedSKey added in v0.7.0

func GetPaymentExtendedSKey(paymentKey bip32.XPrv) KeyFile

func GetPaymentSKey added in v0.2.0

func GetPaymentSKey(paymentKey bip32.XPrv) KeyFile

func GetPaymentVKey added in v0.2.0

func GetPaymentVKey(paymentKey bip32.XPrv) KeyFile

func GetStakeExtendedSKey added in v0.7.0

func GetStakeExtendedSKey(stakeKey bip32.XPrv) KeyFile

func GetStakeSKey added in v0.2.0

func GetStakeSKey(stakeKey bip32.XPrv) KeyFile

func GetStakeVKey added in v0.2.0

func GetStakeVKey(stakeKey bip32.XPrv) KeyFile

type Wallet added in v0.2.0

type Wallet struct {
	Mnemonic            string  `json:"mnemonic"`
	PaymentAddress      string  `json:"payment_address"`
	StakeAddress        string  `json:"stake_address"`
	PaymentVKey         KeyFile `json:"payment_kvey"`
	PaymentSKey         KeyFile `json:"payment_skey"`
	PaymentExtendedSKey KeyFile `json:"payment_extended_skey"`
	StakeVKey           KeyFile `json:"stake_vkey"`
	StakeSKey           KeyFile `json:"stake_skey"`
	StakeExtendedSKey   KeyFile `json:"stake_extended_skey"`
}

func NewDefaultWallet added in v0.4.0

func NewDefaultWallet(mnemonic string) (*Wallet, error)

func NewWallet added in v0.4.0

func NewWallet(
	mnemonic, network string,
	accountId uint,
	paymentId, stakeId, addressId uint32,
) (*Wallet, error)

Directories

Path Synopsis
cmd
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
internal
api
cli

Jump to

Keyboard shortcuts

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