Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64 ¶
func EncodeBase64 ¶
func ToFile ¶
func ToFile(path string, keypair *Ed25519Keypair) error
Types ¶
type Ed25519Keypair ¶
func FromFile ¶
func FromFile(path string) (*Ed25519Keypair, error)
func NewKeyPair ¶
func NewKeyPair() (*Ed25519Keypair, error)
func (*Ed25519Keypair) Sign ¶
func (keypair *Ed25519Keypair) Sign(ip common.ResolvedIp) string
func (*Ed25519Keypair) Verify ¶
func (keypair *Ed25519Keypair) Verify(signature string, ip common.ResolvedIp) bool
type SignatureKeypair ¶
type SignatureKeypair interface { Sign(ip common.ResolvedIp) string VerificationKey }
type VerificationKey ¶
type VerificationKey interface {
Verify(signature string, ip common.ResolvedIp) bool
}
func PubkeyFromString ¶
func PubkeyFromString(pub string) (VerificationKey, error)
TODO: Test with garbage input
Click to show internal directories.
Click to hide internal directories.