From 4e6f451572023ce636836ea2b13b7914a2c25657 Mon Sep 17 00:00:00 2001 From: Asa Oines Date: Tue, 11 Sep 2018 20:12:47 -0700 Subject: [PATCH] Encode verification code with base64 (#42) --- abe/abe.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/abe/abe.go b/abe/abe.go index 74f409c307b2..2fb123b7a9b8 100644 --- a/abe/abe.go +++ b/abe/abe.go @@ -18,6 +18,7 @@ package abe import ( "bytes" + "encoding/base64" "encoding/json" "errors" "fmt" @@ -27,7 +28,6 @@ import ( "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" @@ -53,7 +53,7 @@ func createVerificationMessage(request types.VerificationRequest, account accoun if err != nil { return "", err } - return fmt.Sprintf("Celo verification code: %s:%d", hexutil.Encode(signature), request.VerificationIndex), nil + return fmt.Sprintf("Celo verification code: %s:%d", base64.URLEncoding.EncodeToString(signature), request.VerificationIndex), nil } func sendSms(phoneNumber string, message string) error {