Skip to content

Commit

Permalink
add method to convert secret to pub key
Browse files Browse the repository at this point in the history
  • Loading branch information
keithsue committed Jan 8, 2025
1 parent 83bda02 commit e4613dc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion x/lending/types/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package types
import "github.com/btcsuite/btcd/btcec/v2"

// SecretToPubKey gets the serialized public key of the given secret on the secp256k1 curve
// Assume that the secret is 256-bit bytes
func SecretToPubKey(secretBytes []byte) []byte {
var secret btcec.ModNScalar
_ = secret.SetByteSlice(secretBytes)
Expand Down

0 comments on commit e4613dc

Please sign in to comment.