Skip to content

Commit

Permalink
Updated XMSS MaxHeight limit panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyber committed Aug 16, 2024
1 parent c9389fe commit aee32c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmss/xmss.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type XMSS struct {
func NewXMSSFromSeed(seed [common.SeedSize]uint8, height uint8, hashFunction HashFunction, addrFormatType common.AddrFormatType) *XMSS {
signatureType := common.XMSSSig // Signature Type hard coded for now
if height > MaxHeight {
panic("Height should be <= 254")
panic(fmt.Sprintf("Height should be <= %d", MaxHeight))
}
desc := NewQRLDescriptor(height, hashFunction, signatureType, addrFormatType)

Expand Down

0 comments on commit aee32c7

Please sign in to comment.