Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultIDBits = 256
)
Functions ¶
func GeneratePrivateKey ¶ added in v1.9.0
func GeneratePrivateKey() (*v1.PrivateKey, error)
func MustRandomID ¶
func MustRandomUint64 ¶
func MustRandomUint64() uint64
func RandomUint64 ¶
func TruncateID ¶
Types ¶
type PrivateKey ¶ added in v1.9.0
type PrivateKey struct { *PublicKey // contains filtered or unexported fields }
func NewPrivateKey ¶ added in v1.9.0
func NewPrivateKey(privkey *v1.PrivateKey) (*PrivateKey, error)
func (*PrivateKey) PrivateKeyProto ¶ added in v1.9.0
func (pk *PrivateKey) PrivateKeyProto() *v1.PrivateKey
type PublicKey ¶ added in v1.9.0
type PublicKey struct {
// contains filtered or unexported fields
}
func (*PublicKey) PublicKeyProto ¶ added in v1.9.0
Click to show internal directories.
Click to hide internal directories.