Documentation
¶
Overview ¶
* Copyright 2020 The openwallet Authors * This file is part of the openwallet library. * * The openwallet library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The openwallet library 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 Lesser General Public License for more details.
* Copyright 2020 The openwallet Authors * This file is part of the openwallet library. * * The openwallet library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The openwallet library 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 Lesser General Public License for more details.
* Copyright 2020 The openwallet Authors * This file is part of the openwallet library. * * The openwallet library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The openwallet library 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 Lesser General Public License for more details.
* Copyright 2020 The openwallet Authors * This file is part of the openwallet library. * * The openwallet library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The openwallet library 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 Lesser General Public License for more details.
Index ¶
- Variables
- func CURVE25519_genPub(prikey []byte) ([]byte, error)
- func CURVE25519_sha256_genPub(prikey []byte) ([]byte, error)
- func CURVE25519_sha256_sign(prikey, message []byte) ([]byte, error)
- func CURVE25519_sha256_verify(pubkey, message, signature []byte) bool
- func CURVE25519_sign(prikey, message []byte) ([]byte, error)
- func CURVE25519_verify(pubkey, message, sig []byte) bool
- func ConvertEdToX(ed25519PubkeyBytes [32]byte) ([32]byte, error)
- func ConvertXToEd(x25519PubkeyBytes [32]byte) ([32]byte, error)
- func Curve(Z, k, P []byte)
- func ED25519_genPub(prikey []byte) ([]byte, error)
- func ED25519_sign(prikey, message []byte) ([]byte, error)
- func ED25519_verify(pubkey, message, sig []byte) bool
- func IsCanonicalPublicKey(publicKey []byte) bool
- func IsCanonicalSignature(v []byte) bool
- func Keygen(P, s, k []byte)
- func Point_add(point1, point2, point *[32]byte) bool
- func ScalarMultBaseAdd(point1, scalar, point2 *[32]byte) bool
- func Sign(v, h, x, s []byte) bool
- func Verify(Y, v, h, P []byte)
- func X25519_genPub(prikey []byte) ([]byte, error)
- func X25519_sign(prikey, message []byte) ([]byte, error)
- func X25519_verify(pubkey, message, signature []byte) bool
Constants ¶
This section is empty.
Variables ¶
var (
ErrPrivateKeyIllegal = errors.New("Invalid private key data!")
)
Functions ¶
func CURVE25519_genPub ¶
func CURVE25519_sha256_sign ¶
func CURVE25519_sign ¶
func CURVE25519_verify ¶
func ConvertEdToX ¶
func ConvertXToEd ¶
func ED25519_genPub ¶
func ED25519_sign ¶
func ED25519_verify ¶
func IsCanonicalPublicKey ¶
func IsCanonicalSignature ¶
func ScalarMultBaseAdd ¶
func X25519_genPub ¶
func X25519_sign ¶
func X25519_verify ¶
Types ¶
This section is empty.
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
* Copyright 2020 The openwallet Authors * This file is part of the openwallet library.
|
* Copyright 2020 The openwallet Authors * This file is part of the openwallet library. |