Documentation
¶
Index ¶
- Variables
- func IsValidAddress(address string) bool
- func IsValidConsortiumAddress(address string, alphabet *base58.Alphabet, accountPrefix uint8) bool
- func IsValidConsortiumSecret(secret string, alphabet *base58.Alphabet, seedfix uint8) bool
- func IsValidSecret(secret string) bool
- type Wallet
- func FromConsortiumSecret(secret string, alphabet *base58.Alphabet, seedfix uint8, accountPrefix uint8) (*Wallet, error)
- func FromSecret(secret string) (*Wallet, error)
- func Generate() (*Wallet, error)
- func GenerateConsortium(alphabet *base58.Alphabet, seedfix uint8, accountPrefix uint8) (*Wallet, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SWTCAlphabet *base58.Alphabet
SWTCAlphabet definition
Functions ¶
func IsValidAddress ¶
IsValidAddress validate swtc address is valid or not
func IsValidConsortiumAddress ¶
IsValidConsortiumAddress validate consortium chain address is valid or not
func IsValidConsortiumSecret ¶
IsValidConsortiumSecret validate consortium chain secret is valid or not
func IsValidSecret ¶
IsValidSecret validate swtc secret is valid or not
Types ¶
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
Wallet strcut
func FromConsortiumSecret ¶
func FromConsortiumSecret(secret string, alphabet *base58.Alphabet, seedfix uint8, accountPrefix uint8) (*Wallet, error)
FromConsortiumSecret generate consortium chain wallet by secret
func FromSecret ¶
FromSecret generate swtc wallet by secret
func GenerateConsortium ¶
func GenerateConsortium(alphabet *base58.Alphabet, seedfix uint8, accountPrefix uint8) (*Wallet, error)
GenerateConsortium to generate consortium chain wallet
func (*Wallet) GetPublicKey ¶
GetPublicKey get public key
Click to show internal directories.
Click to hide internal directories.