Skip to content

Commit

Permalink
Merge pull request #43 from TRON-US/BTFS-1094-v3
Browse files Browse the repository at this point in the history
change getPubKeyFromPeerId to public method
  • Loading branch information
taiyangc authored Dec 3, 2019
2 parents 56bb359 + 9dd6851 commit 3c87186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func Decrypt(key, text []byte) ([]byte, error) {
return unpadMsg, nil
}

func getPubKeyFromPeerId(pid string) (ic.PubKey, error) {
func GetPubKeyFromPeerId(pid string) (ic.PubKey, error) {
peerId, err := peer.IDB58Decode(pid)
if err != nil {
return nil, err
Expand Down

0 comments on commit 3c87186

Please sign in to comment.