Digest
Digest struct { bytes [DigestSize]byte }
Digest is an immutable, fixed-size SHA-256 digest value.
Methods
| Name | Signature | Description |
|---|---|---|
Bytes | func Bytes() []byte | Bytes returns a copy of the raw 32-byte digest. |
Hex | func Hex() string | Hex returns the canonical lower-case hexadecimal representation. |
String | func String() string | String implements fmt.Stringer using the canonical hexadecimal form. |
Equal | func Equal(other Digest) bool | Equal compares two digest values. |
Source
This page is generated from SDK source metadata and the translation catalog.