Public Key와 Private Key를 만들어 볼건데
어떤 로직으로 돌아가는지 보자
1) we hash the mesg
"i love you" -> hash(x) -> "lkesfh23fsdvif20sd9v82"
2) generate key pair
Keypair (private Key, public Key) (save privateK to a file)
3) sign the hash
("hashed_message" + private Key) -> "signature"
4) verify
"hashed_message"+ "signature" + "Public Key" -> true
'go언어 블록체인' 카테고리의 다른 글
노마드 코인 11-3 (0) | 2021.08.01 |
---|---|
노마드 코인 11-2 (0) | 2021.07.30 |
노마드 코더 10-13 리뷰 (0) | 2021.07.30 |
노마드 코더 10-12 리뷰 (0) | 2021.07.30 |
노마드코인 10-11 리뷰 (0) | 2021.07.29 |