keypair

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RingSign

func RingSign(kp *RingKeyPair, msg string) string

Types

type RingKeyPair

type RingKeyPair struct {
	Pubs   string `json:"pubs"`
	Priv   string `json:"priv"`
	Nr_mem int    `json:"nr_mem"`
	Mine   int    `json:"mine"`
}

type RingKeyset

type RingKeyset struct {
	Nr_mem int
}

func NewRingKeyset

func NewRingKeyset(nr_mem int) *RingKeyset

func (*RingKeyset) Dispatch

func (k *RingKeyset) Dispatch() *RingKeyPair

func (*RingKeyset) Renew

func (k *RingKeyset) Renew()

func (*RingKeyset) Verify

func (k *RingKeyset) Verify(msg string, sig string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL