[개발] Steem 전송시 암호화된 메모 복호화하기

in upvu •  2 years ago 

안녕하세요 @realmankwon 입니다.

steem 전송시 암호화된 메모를 복호화할 일이 생겨서 한번 개발을 해 보았습니다.
한 줄이면 되긴 하네요.

steem.memo.decode(memoKey, request.memo).substring(1);

메모 암호화시 제일 앞에 # 이 붙기 때문에 substring(1)로 작성하여 #를 제거하여주었습니다.
결과는 잘 나오는군요.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!