Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Documentation #5

Open
Tracked by #13
fcasal opened this issue Mar 21, 2024 · 0 comments
Open
Tracked by #13

Code Documentation #5

fcasal opened this issue Mar 21, 2024 · 0 comments

Comments

@fcasal
Copy link
Contributor

fcasal commented Mar 21, 2024

lms-go/lms/ots/types.go

Lines 7 to 29 in c7cd3ad

// A LmsOtsPrivateKey is used to sign exactly one message.
type LmsOtsPrivateKey struct {
typecode common.LmsOtsAlgorithmType
q uint32
id common.ID
x [][]byte
valid bool
}
// A LmsOtsPublicKey is used to verify exactly one message.
type LmsOtsPublicKey struct {
typecode common.LmsOtsAlgorithmType
q uint32
id common.ID
k []byte
}
// A LmsOtsSignature is a signature of one message.
type LmsOtsSignature struct {
typecode common.LmsOtsAlgorithmType
c []byte
y [][]byte
}

lms-go/lms/lms/types.go

Lines 8 to 33 in c7cd3ad

// A LmsPrivateKey is used to sign a finite number of messages
type LmsPrivateKey struct {
typecode common.LmsAlgorithmType
otstype common.LmsOtsAlgorithmType
q uint32
id common.ID
seed []byte
authtree [][]byte
}
// A LmsPublicKey is used to verify messages signed by a LmsPrivateKey
type LmsPublicKey struct {
typecode common.LmsAlgorithmType
otstype common.LmsOtsAlgorithmType
id common.ID
k []byte
}
// A LmsSignature represents a signature produced by an LmsPrivateKey
// which an LmsPublicKey can validate for a given message
type LmsSignature struct {
typecode common.LmsAlgorithmType
q uint32
ots ots.LmsOtsSignature
path [][]byte
}

@tob-scott-a tob-scott-a mentioned this issue Mar 22, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant