Documentation
¶
Index ¶
Constants ¶
View Source
const ( LegacyTxType = types.LegacyTxType AccessListTxType = types.AccessListTxType DynamicFeeTxType = types.DynamicFeeTxType BlobTxType = types.BlobTxType BTCTxType = 0x04 )
Transaction types.
Variables ¶
This section is empty.
Functions ¶
func ConvBlockHeader ¶
func ConvBlockHeader(header *wire.BlockHeader) (*types.Header, error)
Types ¶
type Account ¶
type Account struct {
PubKey []byte
AddressP2PK string
AddressP2PKH string
AddressP2WPKH string
AddressP2TR string
AddressEth string
// contains filtered or unexported fields
}
Account represents a blockchain account derived from a public key.
func NewAccount ¶
NewAccount creates a new Account instance for a given public key and network parameters.
func (*Account) GenerateAddresses ¶
GenerateAddresses generates all supported addresses (P2PK, P2PKH, P2WPKH, P2TR, and Ethereum).
Click to show internal directories.
Click to hide internal directories.