Documentation
¶
Index ¶
- func Base64URLDecode(data string) ([]byte, error)
- func Base64URLEncode(data []byte) string
- func DeepHash(data any) [48]byte
- func GetAddressFromOwner(owner string) (string, error)
- func GetAddressFromPublicKey(p *rsa.PublicKey) string
- func GetPublicKeyFromOwner(owner string) (*rsa.PublicKey, error)
- func SHA256(data []byte) []byte
- func Sign(data []byte, privateKey *rsa.PrivateKey) ([]byte, error)
- func Verify(data []byte, signature []byte, publicKey *rsa.PublicKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64URLDecode ¶ added in v0.2.6
Base64URLDecode Decode Base64URL string to bytes
func Base64URLEncode ¶ added in v0.2.6
Base64URLEncode Encode bytes to Base64URL string
func DeepHash ¶
DeepHash is a hash algorithm which takes a nested list of values as input and produces a 384 bit hash, where a change of any value or the structure will affect the hash. https://www.arweave.org/yellow-paper.pdf
func GetAddressFromOwner ¶ added in v0.1.2
GetAddressFromOwner - Convert the 512 byte owner to the Arweave public address
func GetAddressFromPublicKey ¶ added in v0.1.2
GetAddressFromPublicKey - Convert the RSA Public Key to the Arweave public address
func GetPublicKeyFromOwner ¶ added in v0.1.2
GetPublicKeyFromOwner - Convert the 512 byte owner from the Public
func SHA256 ¶
SHA256 - Convert raw binary data to SHA256 hashed bytes. This is convenience function for the library.
Types ¶
This section is empty.