frostfs-sdk-go/crypto/util.go
Anton Nikiforov 21eef1ae7f [#351] Add StringifyPublicKey method for NodeInfo
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
2022-10-13 10:27:18 +03:00

9 lines
280 B
Go

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)
}