urbit-hob: Hoon-style atom manipulation and printing functions
Here you can primarily find functions for dealing with the "patp" phonetic base used by Urbit. The @p encoding is used for naming ships; it uniquely represents a 32-bit number in a memorable and pronounceable fashion.
The @p encoding is an obfuscated representation of an underlying 32-bit number, in particular, hence the "ob" in the library's name.
The Urbit.Ob
module exposes two functions, patp
and fromPatp
, for
converting between representations. You can render a Patp
value via the
render
function.
Here's a quick example:
>>>
import qualified Urbit.Ob as Ob
>>>
let nidsut = Ob.patp 15663360
>>>
Ob.render nidsut
"~nidsut-tomdun">>>
Ob.fromPatp nidsut
15663360
Flags
Manual Flags
Name | Description | Default |
---|---|---|
release | Build for release | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- urbit-hob-0.1.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0, 0.1.1, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.3.3 |
---|---|
Dependencies | base (>=4.7 && <6), bytestring (>=0.10 && <1), cereal (>=0.5 && <1), murmur3 (>=1.0 && <2), text (>=1.2 && <2), vector (>=0.12 && <1) [details] |
License | MIT |
Copyright | 2019 Jared Tobin |
Author | Jared Tobin |
Maintainer | jared@jtobin.io |
Revised | Revision 1 made by JaredTobin at 2019-09-13T21:28:58Z |
Category | Urbit |
Home page | https://github.com/urbit/urbit-hob |
Bug tracker | https://github.com/urbit/urbit-hob/issues |
Source repo | head: git clone https://github.com/urbit/urbit-hob |
Uploaded | by JaredTobin at 2019-09-13T21:24:37Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 2599 total (1 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2019-09-13 [all 1 reports] |