kA and wrapKb are now Buffers internally
tokenid and tokendata are now Buffers internally