Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base58Encoded128BitToUUID ¶ added in v0.1.5
Base58Encoded128BitToUUID decodes the given string and creates a uuid from the bytes array.
func CheckIfArrayIsURI ¶ added in v0.1.5
CheckIfArrayIsURI checks if every string in the given string array is a valid URI.
func CheckIfBase58Encoded128BitValue ¶ added in v0.1.5
CheckIfBase58Encoded128BitValue can't tell if the value before being encoded was precisely 128 bits long. This is because the byte58.decode function returns an array of bytes, not just a string of bits. So the closest I can do is see if the decoded byte array is 16 bytes long, however this means that if the original value was 121 bits to 127 bits long it'll still be accepted.
func CheckIfURI ¶ added in v0.1.5
CheckIfURI checks if the given string is a valid URI.
func GenerateEDVCompatibleID ¶
GenerateEDVCompatibleID generates an EDV compatible ID using a cryptographically secure random number generator.
func ValidateJWE ¶ added in v0.1.5
ValidateJWE returns an error if the given raw JWE is empty or has invalid alg fields.
Types ¶
This section is empty.