Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey interface { PublicKey() PublicKey Sign(msg string) (Signature, error) RingSign(msg string, ringPubKeys []PublicKey) (RingSignature, error) String() string }
PrivateKey represents a private key
type PrivateKeyAdapter ¶
type PrivateKeyAdapter interface {
ToPrivateKey(pk string) (PrivateKey, error)
}
PrivateKeyAdapter represents a privateKey adapter
func NewPrivateKeyAdapter ¶
func NewPrivateKeyAdapter() PrivateKeyAdapter
NewPrivateKeyAdapter creates a new PrivateKey adapter
type PrivateKeyFactory ¶
type PrivateKeyFactory interface {
Create() PrivateKey
}
PrivateKeyFactory represents a privateKey factory
func NewPrivateKeyFactory ¶
func NewPrivateKeyFactory() PrivateKeyFactory
NewPrivateKeyFactory creates a PrivateKey factory
type PublicKeyAdapter ¶
PublicKeyAdapter represents a publicKey adapter
func NewPublicKeyAdapter ¶
func NewPublicKeyAdapter() PublicKeyAdapter
NewPublicKeyAdapter creates a new publicKey adapter
type RingSignature ¶
RingSignature represents a RingSignature
type RingSignatureAdapter ¶
type RingSignatureAdapter interface { ToSignature(sig string) (RingSignature, error) ToVerification(sig RingSignature, msg string, pubKeyHashes []hash.Hash) (bool, error) }
RingSignatureAdapter represents a ring signature adapter
func NewRingSignatureAdapter ¶
func NewRingSignatureAdapter() RingSignatureAdapter
NewRingSignatureAdapter creates a ring signature adapter
Click to show internal directories.
Click to hide internal directories.