Skip to content

Commit

Permalink
fix: use correct part of key bytes for skey value
Browse files Browse the repository at this point in the history
  • Loading branch information
agaffney committed Apr 30, 2024
1 parent dcac356 commit 2851850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bursa.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func GetPaymentVKey(paymentKey bip32.XPrv) KeyFile {
}

func GetPaymentSKey(paymentKey bip32.XPrv) KeyFile {
keyCbor, err := cbor.Marshal(paymentKey[:32])
keyCbor, err := cbor.Marshal(paymentKey)
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -173,7 +173,7 @@ func GetStakeVKey(stakeKey bip32.XPrv) KeyFile {
}

func GetStakeSKey(stakeKey bip32.XPrv) KeyFile {
keyCbor, err := cbor.Marshal(stakeKey[:32])
keyCbor, err := cbor.Marshal(stakeKey)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 2851850

Please sign in to comment.