Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sign ¶
func Sign(object interfaces.Byter, pair *types.KeyPair, generator *types.Hash, signature *types.Hash, dataOffset int)
Sign creates a signature for any element that Byteble implements. Requires that you also specify generator and signature, where the public key of the signer and his signature will be placed. dataOffset will also help you delete the last n bytes of the byte array.
func Verify ¶
func Verify(object interfaces.Byter, generator types.Hash, signature types.Hash, dataOffset int) bool
Verify verifies the validity of the generator signature by Byter object. Unlike Sign does not require pointers. For the validity of events, do not forget to specify the same dataOffset when signing and verifying.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.