Skip to content

Commit

Permalink
boot sequence: fix SetProds Action public key extraction from string
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Duchesneau committed Oct 28, 2019
1 parent 983e045 commit d21fbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bios/ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func (op *OpSetProds) Actions(b *BIOS) (out []*eos.Action, err error) {
if key.BlockSigningKeyString == "" || key.BlockSigningKeyString == "ephemeral" {
prodKey.BlockSigningKey = b.EphemeralPublicKey
} else {
k, err := ecc.NewPublicKeyFromData([]byte(key.BlockSigningKeyString))
k, err := ecc.NewPublicKey(key.BlockSigningKeyString)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit d21fbf6

Please sign in to comment.