package
0.5.12
Repository: https://github.com/anyproto/any-sync.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DecryptX25519 takes a x25519 private and public key and decrypts the message.
DeriveSymmetricKey derives a symmetric key from seed and path using slip-21.
Ed25519PrivateKeyToCurve25519 converts an Ed25519 private key to a Curve25519 private key This code is originally taken from here https://github.com/jorrizza/ed2curve25519/blob/master/ed2curve25519.go.
Ed25519PublicKeyToCurve25519 converts an Ed25519 public key to a Curve25519 public key.
No description provided by the author
No description provided by the author
EncryptX25519 takes a x25519 public key and encrypts the message.
GenerateEd25519Key generates a new ed25519 private and public key pair.
No description provided by the author
No description provided by the author
No description provided by the author
NewAES returns AESKey if err is nil and panics otherwise.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewRandomAES returns a random key.
No description provided by the author
No description provided by the author
UnmarshalEd25519PrivateKey returns a private key from input bytes.
No description provided by the author
UnmarshalEd25519PublicKey returns a public key from input bytes.
No description provided by the author
UnmarshallAESKey returns a key by decoding bytes.
UnmarshallAESKeyProto returns a key by decoding bytes.
UnmarshallAESKeyString returns a key by decoding a base32-encoded string.

# Constants

No description provided by the author
No description provided by the author
KeyBytes is the length of GCM key.
NonceBytes is the length of GCM nonce.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
Ed25519PrivKey is an ed25519 private key.
Ed25519PubKey is an ed25519 public key.
No description provided by the author

# Interfaces

Key is an abstract interface for all types of keys.
No description provided by the author
PrivKey is an interface for keys that should be used for signing and decryption.
PubKey is the public key used to verify the signatures and decrypt messages.
No description provided by the author

# Type aliases

No description provided by the author