core/interop: add base58 encoding/decoding syscalls

Follow neo-project/neo#1833.
This commit is contained in:
Roman Khimov 2020-08-23 17:19:56 +03:00
parent 562e7e371f
commit 9c72ea1d64
6 changed files with 80 additions and 30 deletions

View file

@ -28,3 +28,15 @@ func Base64Encode(b []byte) []byte {
func Base64Decode(b []byte) []byte {
return nil
}
// Base58Encode encodes given byte slice into a base58 string and returns byte
// representation of this string. It uses `System.Binary.Base58Encode` syscall.
func Base58Encode(b []byte) []byte {
return nil
}
// Base58Decode decodes given base58 string represented as a byte slice into
// a new byte slice. It uses `System.Binary.Base58Decode` syscall.
func Base58Decode(b []byte) []byte {
return nil
}