bitauth / libauth

An ultra-lightweight, zero-dependency TypeScript library for Bitcoin Cash, Bitcoin, and Bitauth applications.

Home Page:https://libauth.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

export an encodeDataPushMultiByte

bitjson opened this issue · comments

The encodeDataPush method doesn't quite work for SLP applications because SLP disallows single-byte push operations. We should refactor the multi-byte encoding segment of encodeDataPush into an encodeDataPushMultiByte, then use it internally in encodeDataPush for payloads which can't be encoded in a single byte.