Documentation ¶
Index ¶
- func Bin2Addresses(binAddresses [][]byte) []string
- func BytesToHexStr(data []uint8) string
- func BytesToString(data []byte) string
- func ClearPrefix0x(data string) string
- func ConvertBytesToLong(b []byte) uint32
- func FileExists(fileName string) bool
- func GetAddressFromUnSizedPK(pk []byte) common.Address
- func GetDilithiumAddressFromUnSizedPK(pk []byte) common.Address
- func GetMaxOTSBitfieldSizeFromAddress(addr common.Address) uint64
- func GetOTSIndexFromSignature(signature []byte) uint64
- func GetSignatureType(addr common.Address) common2.SignatureType
- func GetWalletTypeFromPK(pk []byte) common2.SignatureType
- func GetXMSSAddressFromUnSizedPK(pk []byte) common.Address
- func HexStrToBytes(data string) ([]uint8, error)
- func IPFromMultiAddr(multiAddr string) string
- func IsUsedOTSIndex(otsIndex uint64, otsBitfield [][8]byte) bool
- func MerkleTXHash(hashes list.List) []byte
- func NewRotateFileHook(config RotateFileConfig) (logrus.Hook, error)
- func ShorToQuanta(data uint64) string
- func ShorsToQuantas(data []uint64) []string
- func StringAddressToBytesArray(addrs []string) ([][]byte, error)
- func UnSizedAddressToSizedAddress(addr []byte) (addrSized [common2.AddressSize]uint8)
- func UnSizedDilithiumPKToSizedPK(pk []byte) (pkSized [dilithium.PKSizePacked]uint8)
- func UnSizedXMSSPKToSizedPK(pk []byte) (pkSized [xmss.ExtendedPKSize]uint8)
- type RotateFileConfig
- type RotateFileHook
- type TransactionList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bin2Addresses ¶
func BytesToHexStr ¶
func BytesToString ¶
func ClearPrefix0x ¶
func ConvertBytesToLong ¶
func FileExists ¶
func GetAddressFromUnSizedPK ¶
func GetSignatureType ¶
func GetSignatureType(addr common.Address) common2.SignatureType
func GetWalletTypeFromPK ¶
func GetWalletTypeFromPK(pk []byte) common2.SignatureType
func HexStrToBytes ¶
func IPFromMultiAddr ¶
func IsUsedOTSIndex ¶
func MerkleTXHash ¶
func NewRotateFileHook ¶
func NewRotateFileHook(config RotateFileConfig) (logrus.Hook, error)
func ShorToQuanta ¶
func ShorsToQuantas ¶
func UnSizedAddressToSizedAddress ¶
func UnSizedAddressToSizedAddress(addr []byte) (addrSized [common2.AddressSize]uint8)
func UnSizedDilithiumPKToSizedPK ¶
func UnSizedDilithiumPKToSizedPK(pk []byte) (pkSized [dilithium.PKSizePacked]uint8)
func UnSizedXMSSPKToSizedPK ¶
func UnSizedXMSSPKToSizedPK(pk []byte) (pkSized [xmss.ExtendedPKSize]uint8)
Types ¶
type RotateFileConfig ¶
type RotateFileHook ¶
type RotateFileHook struct { Config RotateFileConfig // contains filtered or unexported fields }
func (*RotateFileHook) Levels ¶
func (hook *RotateFileHook) Levels() []logrus.Level
type TransactionList ¶
type TransactionList struct {
// contains filtered or unexported fields
}
func NewTransactionList ¶
func NewTransactionList(outFileName string) *TransactionList
func (*TransactionList) Add ¶
func (t *TransactionList) Add(tx *protos.Transaction)
func (*TransactionList) GetTransactions ¶
func (t *TransactionList) GetTransactions() []*protos.Transaction
func (*TransactionList) List ¶
func (t *TransactionList) List()
func (*TransactionList) Load ¶
func (t *TransactionList) Load()
func (*TransactionList) Remove ¶
func (t *TransactionList) Remove()
func (*TransactionList) Save ¶
func (t *TransactionList) Save()
Click to show internal directories.
Click to hide internal directories.