docs(did): re-fix typo RE coercion of secp256k1 public keys
This commit is contained in:
@@ -204,8 +204,8 @@ func codeForCurve(pubKey crypto.PubKey) (multicodec.Code, error) {
|
|||||||
// package treats it as a different type and has a different format for
|
// package treats it as a different type and has a different format for
|
||||||
// the raw bytes of the public key.
|
// the raw bytes of the public key.
|
||||||
//
|
//
|
||||||
// If a valid ECDSA public key was created the secp256k1.S256 curve, this
|
// If a valid ECDSA public key was created using the secp256k1.S256 curve,
|
||||||
// function will "convert" it from a crypto.ECDSAPubKey to a
|
// this function will "convert" it from a crypto.ECDSAPubKey to a
|
||||||
// crypto.Secp256k1PublicKey.
|
// crypto.Secp256k1PublicKey.
|
||||||
func coerceECDSAToSecp256k1(pubKey crypto.PubKey) (crypto.PubKey, error) {
|
func coerceECDSAToSecp256k1(pubKey crypto.PubKey) (crypto.PubKey, error) {
|
||||||
stdPub, err := crypto.PubKeyToStdKey(pubKey)
|
stdPub, err := crypto.PubKeyToStdKey(pubKey)
|
||||||
|
|||||||
Reference in New Issue
Block a user