Versions in this module Expand all Collapse all v1 v1.0.0 Oct 28, 2019 Changes in this version + const AddressPrefix + const AssetID_ELA + const DefaultPayloadVersion + const OP_CHECKSIG + const TxTypeTransferAsset + var BitcoinAlphabet = NewAlphabet("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz") + var ErrorInvalidBase58String = errors.New("invalid base58 string") + func Decode(input string, alphabet *Alphabet) ([]byte, error) + func DecodeCheck(address string) ([]byte, []byte, error) + func Encode(input []byte, alphabet *Alphabet) string + func EncodeCheck(prefix []byte, hash []byte) string + func GetProgramHashFromAddress(address string) ([]byte, error) + func SignRawTransaction(hash string, privateKey []byte) ([]byte, error) + func VerifyAndCombineRawTransaction(emptyTrans string, sigPubs []SigPub) (bool, string) + type Alphabet struct + func NewAlphabet(alphabet string) *Alphabet + func (alphabet Alphabet) String() string + type Input struct + Sequence []byte + TxID []byte + Vout []byte + func (input Input) ToBytes() []byte + type Output struct + Amount []byte + AssetID []byte + Lock []byte + ProgramHash []byte + func (output Output) ToBytes() []byte + type SigPub struct + PublicKey []byte + Signature []byte + func (sp SigPub) ToBytes() ([]byte, error) + type Sigpubs []SigPub + func (sps Sigpubs) ToBytes() ([]byte, error) + type Transaction struct + Attributes []*[]byte + Inputs []*Input + LockTime []byte + Outputs []*Output + PayloadVersion byte + Signatures []*SigPub + TxType byte + func NewTransaction(vins []Vin, vouts []Vout) (*Transaction, error) + func (tx Transaction) GetEmptyAndHash() ([]byte, []byte) + type TxHash struct + Address string + Hash string + func CreateEmptyRawTransactionAndHash(vins []Vin, vouts []Vout) (string, []TxHash, error) + type Vin struct + Address string + TxID string + Vout uint16 + func (in Vin) NewInput() (*Input, error) + type Vout struct + Address string + Amount uint64 + AssetID string + func (out Vout) NewOutput() (*Output, error)