We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I'm trying to use your library inside an Elixir project to deserialize a LND macaroon admin.macaroon file.
admin.macaroon
I'm using this code inside the REPL:
{:ok, file} = File.read "admin.macaroon" encoded = Base.encode64(file) {:ok, mac} = :macaroon.deserialize(encoded)
which will give me the error:
** (MatchError) no match of right hand side value: {:error, :macaroon_invalid}
Testing the same file with pythons pymacaroons works, so it seems a specific deserialization problem with the library.
Since I cannot paste here the binary data from admin.macaroon I will post a link to the file directly and also the base64 with it: admin.macaroon
AgEDbG5kArsBAwoQ5TMSJjie992RIEsCGCuq5xIBMBoWCgdhZGRyZXNzEgRyZWFkEgV3cml0ZRoTCgRpbmZvEgRyZWFkEgV3cml0ZRoXCghpbnZvaWNlcxIEcmVhZBIFd3JpdGUaFgoHbWVzc2FnZRIEcmVhZBIFd3JpdGUaFwoIb2ZmY2hhaW4SBHJlYWQSBXdyaXRlGhYKB29uY2hhaW4SBHJlYWQSBXdyaXRlGhQKBXBlZXJzEgRyZWFkEgV3cml0ZQAABiBoyNHs3jlsGlXIZEV8HtJuIiCh+vA56AFg9poHdCG6zA==
The text was updated successfully, but these errors were encountered:
Thanks for the report, I'll look into it shortly
Sorry, something went wrong.
@sezaru can you try branch v2-serialization?
Very nice! It works like a charm with the v2-serialization.
No branches or pull requests
Hello,
I'm trying to use your library inside an Elixir project to deserialize a LND macaroon
admin.macaroon
file.I'm using this code inside the REPL:
which will give me the error:
Testing the same file with pythons pymacaroons works, so it seems a specific deserialization problem with the library.
Since I cannot paste here the binary data from admin.macaroon I will post a link to the file directly and also the base64 with it:
admin.macaroon
AgEDbG5kArsBAwoQ5TMSJjie992RIEsCGCuq5xIBMBoWCgdhZGRyZXNzEgRyZWFkEgV3cml0ZRoTCgRpbmZvEgRyZWFkEgV3cml0ZRoXCghpbnZvaWNlcxIEcmVhZBIFd3JpdGUaFgoHbWVzc2FnZRIEcmVhZBIFd3JpdGUaFwoIb2ZmY2hhaW4SBHJlYWQSBXdyaXRlGhYKB29uY2hhaW4SBHJlYWQSBXdyaXRlGhQKBXBlZXJzEgRyZWFkEgV3cml0ZQAABiBoyNHs3jlsGlXIZEV8HtJuIiCh+vA56AFg9poHdCG6zA==
The text was updated successfully, but these errors were encountered: