Skip to content

Commit

Permalink
check that key is ed25519
Browse files Browse the repository at this point in the history
  • Loading branch information
chris124567 committed Jun 14, 2024
1 parent 1a59173 commit 24223df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions types/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -1185,8 +1185,7 @@ func (sp *SatisfiedPolicy) DecodeFrom(d *Decoder) {
rec(p.Of[i])
}
case PolicyTypeUnlockConditions:
for i := range p.PublicKeys {
uk := p.PublicKeys[i]
for _, uk := range p.PublicKeys {
if len(uk.Key) != 32 {
d.SetErr(fmt.Errorf("invalid public key length: %d", len(uk.Key)))
return
Expand Down

0 comments on commit 24223df

Please sign in to comment.