forked from TrueCloudLab/frostfs-sdk-go
[#351] Add StringifyPublicKey method for NodeInfo
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
d2f3929b51
commit
21eef1ae7f
2 changed files with 15 additions and 0 deletions
9
crypto/util.go
Normal file
9
crypto/util.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package neofscrypto
|
||||
|
||||
import "encoding/hex"
|
||||
|
||||
// StringifyKeyBinary returns string with HEX representation of source.
|
||||
// Format can be changed and it's unsafe to rely on it beyond human-readable output.
|
||||
func StringifyKeyBinary(src []byte) string {
|
||||
return hex.EncodeToString(src)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue