Zcash
verifymessage8 크레딧
서명된 메시지를 검증합니다.
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| address | string | 메시지에 서명한 레거시(P2PKH) 주소. |
| signature | string | Base64 인코딩된 서명(signmessage 참조). |
| message | string | 서명된 메시지. |
반환값
타입
boolean
서명이 주소와 메시지에 대해 유효하면 true.
코드 예제
curl https://holy-burned-sky-zcash-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "verifymessage",
"params": [
"1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2",
"H9L5yLFjti0QTHhPyFrZCT1V/MMnBtXKmoiKDZ78NDBjERki6ZTQZdSMCtkgoNmp17By9ItJr8o7ChX0XxY91nk=",
"my message"
]
}'