Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PRIVATE_KEY = new(ecdsa.PrivateKey)
View Source
var PRIVATE_KEY_BYTES = []byte{}
View Source
var PRIVATE_KEY_HEX = ""
View Source
var PUBLIC_KEY = []byte{}
View Source
var PUBLIC_KEY_HEX = ""
View Source
var SIGNATURE = []byte{}
View Source
var SIGNATURE_HEX = ""
Functions ¶
func GeneratePublicAndPrivateKey ¶
func GeneratePublicAndPrivateKey()
func HashPublicKey ¶
Hash the public key to display on the blockchain. This is how BTC does it TODO: Implement this function for additional ***security*** and ***privacy***!
func RingSignature ¶
func RingSignature() string
Merges transaction with other transactions on the chain to maintain anonymity
func VerifySignature ¶
To verify the data, we need
1. The data that was signed 2. The signature_p 3. The Public Key
So we need to add that to the Block Will likely take as input the signature_p
Types ¶
type ECDSASignature ¶
Need to make a ECDSASignature struct to verify
Click to show internal directories.
Click to hide internal directories.