Added link to specs for key compression API (#1995)
This commit is contained in:
parent
c8f9dad554
commit
157f20a7c8
|
@ -20,7 +20,7 @@ const (
|
|||
)
|
||||
|
||||
// SerializePublicKey serialises a non-serialised multibase encoded multicodec identified EC public key
|
||||
// For details on usage see specs //TODO add the link to the specs
|
||||
// For details on usage see specs https://specs.status.im/spec/2#public-key-serialization
|
||||
func SerializePublicKey(key, outputBase string) (string, error) {
|
||||
dKey, err := multibaseDecode(key)
|
||||
if err != nil {
|
||||
|
@ -43,7 +43,7 @@ func SerializePublicKey(key, outputBase string) (string, error) {
|
|||
}
|
||||
|
||||
// DeserializePublicKey deserialise a serialised multibase encoded multicodec identified EC public key
|
||||
// For details on usage see specs //TODO add the link to the specs
|
||||
// For details on usage see specs https://specs.status.im/spec/2#public-key-serialization
|
||||
func DeserializePublicKey(key, outputBase string) (string, error) {
|
||||
cpk, err := multibaseDecode(key)
|
||||
if err != nil {
|
||||
|
|
|
@ -671,7 +671,7 @@ func ValidateMnemonic(mnemonic string) string {
|
|||
}
|
||||
|
||||
// SerializePublicKey compresses an uncompressed multibase encoded multicodec identified EC public key
|
||||
// For details on usage see specs //TODO add the link to the specs
|
||||
// For details on usage see specs https://specs.status.im/spec/2#public-key-serialization
|
||||
func MultiformatSerializePublicKey(key, outBase string) string {
|
||||
cpk, err := multiformat.SerializePublicKey(key, outBase)
|
||||
if err != nil {
|
||||
|
@ -682,7 +682,7 @@ func MultiformatSerializePublicKey(key, outBase string) string {
|
|||
}
|
||||
|
||||
// DeserializePublicKey decompresses a compressed multibase encoded multicodec identified EC public key
|
||||
// For details on usage see specs //TODO add the link to the specs
|
||||
// For details on usage see specs https://specs.status.im/spec/2#public-key-serialization
|
||||
func MultiformatDeserializePublicKey(key, outBase string) string {
|
||||
pk, err := multiformat.DeserializePublicKey(key, outBase)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue