Documentation
¶
Index ¶
Constants ¶
const Account = HardenedKeyStart
Account ..
const BackendHelp = "" /* 188-byte string literal not displayed */
BackendHelp ..
const Change = 0
Change ..
const EntropyBitSize = 256
EntropyBitSize ..
const HardenedKeyStart = uint32(0x80000000)
HardenedKeyStart ..
const InvalidMError = "Missing or invalid m param: it must be a positive number"
InvalidMError ..
const InvalidModeError = "Invalid mode"
InvalidModeError ..
const InvalidNError = "Missing or invalid n param: it must be a positive number"
InvalidNError ..
const InvalidNetworkError = "Invalid network"
InvalidNetworkError ..
const InvalidTokenError = "Invalid auth token"
InvalidTokenError ..
const MBiggerThanNError = "Invalid m param: it must be minor or equal to n"
MBiggerThanNError ..
const MOutOfRangeError = "Invalid M param: it must be between 1 and N (inclusive)"
MOutOfRangeError ..
const MainNet = "mainnet"
MainNet ..
const MaxMultiSigN = 7
MaxMultiSigN ..
const MinMultiSigN = 1
MinMultiSigN ..
const MissingInternalDataError = "Secret is missing internal data"
MissingInternalDataError ..
const MissingNetworkError = "Missing network"
MissingNetworkError ..
const MissingPubKeysError = "Missing public keys"
MissingPubKeysError ..
const MissingRawTxError = "Missing raw transaction to sign"
MissingRawTxError ..
const MissingTokenError = "Missing auth token"
MissingTokenError ..
const MissingWalletNameError = "Missing wallet name"
MissingWalletNameError ..
const MultiSigDefaultAddressIndex = 0
MultiSigDefaultAddressIndex ..
const MultiSigSecretCredsType = "multisig_" + SecretCredsType
MultiSigSecretCredsType ..
const MultiSigType = 1
MultiSigType ..
const MultiSigWalletAlreadyExistsError = "Multisig wallet with same name already exists"
MultiSigWalletAlreadyExistsError ..
const MultiSigWalletNotFoundError = "Multisig wallet not found"
MultiSigWalletNotFoundError ..
const NOutOfRangeError = "Invalid N param: it must be a value between 1 and 7 (inclusive)"
NOutOfRangeError ..
const NativeSegwitPurpose = HardenedKeyStart + 84
NativeSegwitPurpose ..
const PathAddress = "address/"
PathAddress ..
const PathAddressHelpDesc = ""
PathAddressHelpDesc ..
const PathAddressHelpSyn = "Returns a new receiving address for selected wallet. You must provide an authentication token"
PathAddressHelpSyn ..
const PathCreds = "creds/"
PathCreds ..
const PathCredsHelpDesc = ""
PathCredsHelpDesc ..
const PathCredsHelpSyn = "Creates authorization tokens for a wallet"
PathCredsHelpSyn ..
const PathMultiSigAddress = PathAddress + "multisig/"
PathMultiSigAddress ..
const PathMultiSigAddressHelpDesc = ""
PathMultiSigAddressHelpDesc ..
const PathMultiSigAddressHelpSyn = "Returns the receiving address of the selected multisig wallet"
PathMultiSigAddressHelpSyn ..
const PathMultiSigCreds = PathCreds + "multisig/"
PathMultiSigCreds ..
const PathMultiSigCredsHelpDesc = ""
PathMultiSigCredsHelpDesc ..
const PathMultiSigCredsHelpSyn = "Creates access tokens for a multisig wallet"
PathMultiSigCredsHelpSyn ..
const PathMultiSigWallet = PathWallet + "multisig/"
PathMultiSigWallet ..
const PathMultiSigWalletsHelpDesc = ""
PathMultiSigWalletsHelpDesc ..
const PathMultiSigWalletsHelpSyn = "Creates a new wallet that is used as nth key of the m/n multisig wallet"
PathMultiSigWalletsHelpSyn ..
const PathSecrets = "secrets/"
PathSecrets ..
const PathSegWitAddress = PathAddress + "segwit/"
PathSegWitAddress ..
const PathSegWitAddressHelpDesc = ""
PathSegWitAddressHelpDesc ..
const PathSegWitAddressHelpSyn = "Returns a new receiving address for selected native segwit wallet. You must provide an authentication token"
PathSegWitAddressHelpSyn ..
const PathSegWitCreds = PathCreds + "segwit/"
PathSegWitCreds ..
const PathSegWitCredsHelpDesc = ""
PathSegWitCredsHelpDesc ..
const PathSegWitCredsHelpSyn = "Creates access tokens for a native segwit wallet"
PathSegWitCredsHelpSyn ..
const PathSegWitWallet = PathWallet + "segwit/"
PathSegWitWallet ..
const PathSegWitWalletsHelpDesc = ""
PathSegWitWalletsHelpDesc ..
const PathSegWitWalletsHelpSyn = "Creates a new BIP84 wallet by specifying network and name"
PathSegWitWalletsHelpSyn ..
const PathTransactionHelpDesc = ""
PathTransactionHelpDesc ..
const PathTransactionHelpSyn = "Sign bitcoin raw transaction"
PathTransactionHelpSyn ..
const PathWallet = "wallet/"
PathWallet ..
const PathWalletsHelpDesc = ""
PathWalletsHelpDesc ..
const PathWalletsHelpSyn = "Creates a new BIP44 wallet by specifying network and name"
PathWalletsHelpSyn ..
const Purpose = HardenedKeyStart + 44
Purpose ..
const RegTest = "regtest"
RegTest ..
const SecretCredsType = "creds"
SecretCredsType ..
const SegWitSecretCredsType = "segwit_" + SecretCredsType
SegWitSecretCredsType ..
const SegWitType = 2
SegWitType ..
const SegWitWalletAlreadyExistsError = "Native segwit wallet with same name already exists"
SegWitWalletAlreadyExistsError ..
const SegWitWalletNotFoundError = "Native segwit wallet not found"
SegWitWalletNotFoundError ..
const SegwitPurpose = HardenedKeyStart + 49
SegwitPurpose ..
const StandardType = 0
StandardType ..
const TestNet = "testnet"
TestNet ..
const UnknownWalletTypeError = "Unknown wallet type"
UnknownWalletTypeError ..
const WalletAlreadyExistsError = "BIP44 wallet with same name already exists"
WalletAlreadyExistsError ..
const WalletNotFoundError = "Wallet not found"
WalletNotFoundError ..
Variables ¶
var CoinType = map[string]uint32{ MainNet: HardenedKeyStart, TestNet: HardenedKeyStart + 1, RegTest: HardenedKeyStart + 1, }
CoinType ..
Functions ¶
Types ¶
This section is empty.
Source Files
¶
- backend.go
- constants.go
- multisig_secret_credentials.go
- path_address.go
- path_credentials.go
- path_multisig_address.go
- path_multisig_credential.go
- path_multisig_wallet.go
- path_segwit_address.go
- path_segwit_credentials.go
- path_segwit_wallet.go
- path_transaction.go
- path_wallet.go
- secret_credentials.go
- segwit_secret_credentials.go
- utils.go