sanswallet

package module
v0.0.0-...-62033a6 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: AGPL-3.0 Imports: 9 Imported by: 1

README

SansWallet

Build Status

SansWallet golang library is an implementation of a BIP32, BIP44, BIP49 and BIP84 compatible hierarchical determinstic wallet

Build

Requires Go version 1.9 or later. Use go dep for dependency management

Run all unit tests with $ go test ./...

Contact

contact@sanscentral.org (PGP)

License

AGPLv3 Logo

Copyright (C) 2018 Sans Central

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExtPrvForP2PKHAccount

func GetExtPrvForP2PKHAccount(seed []byte, accountIndex int, testnet bool) (string, error)

GetExtPrvForP2PKHAccount returns extended private key for BIP44 P2PKH account

func GetExtPrvForP2SHAccount

func GetExtPrvForP2SHAccount(seed []byte, accountIndex int, testnet bool) (string, error)

GetExtPrvForP2SHAccount returns extended private key for BIP49 P2SH account

func GetExtPrvForP2WPKHAccount

func GetExtPrvForP2WPKHAccount(seed []byte, accountIndex int, testnet bool) (string, error)

GetExtPrvForP2WPKHAccount returns extended private key for BIP84 P2WPKH account

func GetExtPubForP2PKHAccount

func GetExtPubForP2PKHAccount(seed []byte, accountIndex int, testnet bool) (string, error)

GetExtPubForP2PKHAccount returns extended public key for BIP44 P2PKH account

func GetExtPubForP2SHAccount

func GetExtPubForP2SHAccount(seed []byte, accountIndex int, testnet bool) (string, error)

GetExtPubForP2SHAccount returns extended public key for BIP49 P2SH account

func GetExtPubForP2WPKHAccount

func GetExtPubForP2WPKHAccount(seed []byte, accountIndex int, testnet bool) (string, error)

GetExtPubForP2WPKHAccount returns extended public key for BIP84 P2WPKH account

func GetP2PKHAddressForIndex

func GetP2PKHAddressForIndex(accountKey string, addressIndex int, isChange bool, testnet bool) (string, error)

GetP2PKHAddressForIndex returns address for BTC account at given index P2PK ('1' prefixed addresses) origional pay-to-public-key (use BIP44 derived key)

func GetP2SHAddressForIndex

func GetP2SHAddressForIndex(accountKey string, addressIndex int, isChange bool, testnet bool) (string, error)

GetP2SHAddressForIndex returns address for BTC account at given index P2SH ('3' prefixed addresses) pay-to-script-hash includes P2WPKH-wrapped in P2SH segwit outputs (use BIP49 derived key)

func GetP2WPKHAddressForIndex

func GetP2WPKHAddressForIndex(accountKey string, addressIndex int, isChange bool, testnet bool) (string, error)

GetP2WPKHAddressForIndex returns segwit bech32 address for BTC account extended key at given index P2WPKH pay-to-witness-public-key-hash is the shorter segwit form of P2PKH (newest address format at time of writing, use BIP84 derived key)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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