summaryrefslogtreecommitdiff
path: root/c2ec/encoding.go
diff options
context:
space:
mode:
Diffstat (limited to 'c2ec/encoding.go')
-rw-r--r--c2ec/encoding.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/c2ec/encoding.go b/c2ec/encoding.go
index 970f062..e00a8f4 100644
--- a/c2ec/encoding.go
+++ b/c2ec/encoding.go
@@ -60,3 +60,8 @@ func ParseEddsaPubKey(key EddsaPublicKey) ([]byte, error) {
return talerBase32Decode(string(key))
}
+
+func FormatEddsaPubKey(key []byte) EddsaPublicKey {
+
+ return EddsaPublicKey(talerBase32Encode(key))
+}