timelock

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDecryptionRoundIsInFuture = errors.New("file can be decrypted in the future")
)

Functions

This section is empty.

Types

type TimeLock

type TimeLock struct {
	*TimeLockEncrypt
	*TimeLockDecrypt
	// contains filtered or unexported fields
}

func NewTimeLock

func NewTimeLock(network *client.DrandNetwork) (*TimeLock, error)

type TimeLockDecrypt

type TimeLockDecrypt struct {
	// contains filtered or unexported fields
}

TimeLockDecrypt is used to perform age decryption with drand's IBE decryption.

func (*TimeLockDecrypt) Decrypt

func (tld *TimeLockDecrypt) Decrypt(dst io.Writer, src io.Reader) error

func (*TimeLockDecrypt) Unwrap

func (tld *TimeLockDecrypt) Unwrap(stanzas []*age.Stanza) ([]byte, error)

type TimeLockEncrypt

type TimeLockEncrypt struct {
	// contains filtered or unexported fields
}

TimeLockEncrypt is used to perform age encryption with drand's IBE encryption.

func (*TimeLockEncrypt) Encrypt

func (tle *TimeLockEncrypt) Encrypt(dst io.Writer, src io.Reader, round uint64) error

func (*TimeLockEncrypt) Wrap

func (tle *TimeLockEncrypt) Wrap(fileKey []byte) ([]*age.Stanza, error)

Jump to

Keyboard shortcuts

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