Skip to content

Elixir implementation of Binary Object Representation Serializer for Hashing (borsh)

License

Notifications You must be signed in to change notification settings

StephaneRob/borsh_ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BorshEx

⚠️ Work in progress

Elixir implementation of Binary Object Representation Serializer for Hashing (borsh)

Installation

If available in Hex, the package can be installed by adding borsh_ex to your list of dependencies in mix.exs:

def deps do
  [
    {:borsh_ex, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/borsh_ex.

Usage

defmodule BorshEx.FakeData do
  use BorshEx.Schema

  defstruct a: nil, b: nil, c: nil

  borsh_schema do
    field :a, "u8"
    field :b, "u64"
    field :c, "string"
  end
end

Copyright and License

Copyright (c) 2022, Stéphane Robino This library is licensed under the BSD-2-Clause.

About

Elixir implementation of Binary Object Representation Serializer for Hashing (borsh)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages