Documentation ¶
Overview ¶
* Copyright (C) 2019 Zilliqa * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.
* This module is a mini wrapper around the main schnorr module used for * zilliqa rosetta project. It includes the generation of the random bytes * to make the signing process more convenient.
Index ¶
- func SignMessage(privateKey []byte, publicKey []byte, message []byte) ([]byte, error)
- func TrySign(privateKey []byte, publicKey []byte, message []byte, k []byte) ([]byte, []byte, error)
- func Verify(publicKey []byte, msg []byte, r []byte, s []byte) bool
- func VerifySignature(publicKey []byte, message []byte, signature []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SignMessage ¶
Types ¶
This section is empty.