You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2022. It is now read-only.
In the RLP encoding section there is this pseudo code. What does ord(input) < 0x80 in the third line mean? What would be the c or c++ equivalent for this?
def rlp_encode(input):
if isinstance(input,str):
if len(input) == 1 and ord(input) < 0x80: return input
else: return encode_length(len(input), 0x80) + input
elif isinstance(input,list):
output = ''
for item in input: output += rlp_encode(item)
return encode_length(len(output), 0xc0) + output
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In the RLP encoding section there is this pseudo code. What does
ord(input) < 0x80
in the third line mean? What would be the c or c++ equivalent for this?The text was updated successfully, but these errors were encountered: