Commit Graph

1189 Commits

Author SHA1 Message Date
Joe Bryan
c014303233 moves +code scry to %jael, removes obsolete %ames scrys 2018-11-01 00:03:26 -04:00
Fang
5c6bcee523 Apply two more small fixes to achieve parity with keygen-js
- argon2u salt
- account for larger seed when deriving from mnemonic
2018-10-30 18:18:17 -07:00
Fang
76ef4ae9e3 Do renaming, error correction, cleanup 2018-10-30 17:15:56 -07:00
rmariani
579efd9972
Remove old-zuse (#867)
* removes old-zuse
2018-10-26 16:19:18 -07:00
benjamin-tlon
a7c967795d
Type Analysis (#865) 2018-10-26 15:43:45 -07:00
Fang
e0f5a9db7a Work with BIP39 mnemonics as outward-facing seeds
Then apply the password in turning them into internally usable seeds.
2018-10-25 19:10:40 -07:00
Fang
6d89026468 Use argon2u salt from the spec 2018-10-25 13:22:18 -07:00
Fang
68234ca138 Derive BIP32 at specific path 2018-10-24 16:32:16 -07:00
Fang
ad9bd39db0 Derive the owner seed, and all other seeds, from "master seed" 2018-10-24 16:31:40 -07:00
Fang
75800ef997 Continue with fixed seed-length changes, don't append pass 2018-10-24 16:30:45 -07:00
Fang
715f801722 Cast the BIP39 wordlist
To give it a more elegant type signature.
2018-10-24 16:28:23 -07:00
Fang
1556402668 Implement BIP39 as a library
Currently only uses the official English wordlist, but could be expanded
to use various other wordlists in the future.

Includes tests.
2018-10-24 14:55:35 -07:00
Fang
9527a002f3 Make seeds always 256 bits in size 2018-10-22 16:37:42 -07:00
Joe Bryan
4d3b204769 implements key rotation with continuity
also not quite working
2018-10-18 14:45:54 -04:00
Joe Bryan
1e0408b445 updates sein:title to use %jael scry, adds ^sein:title 2018-10-17 15:22:07 -04:00
Joe Bryan
b24bd2fcbf removes womb and all its accoutrements 2018-10-17 14:54:28 -04:00
David Kerschner
9eb5c44001
Merge pull request #829 from baudtack/release-candidate
refactor %ask generators
2018-10-12 12:48:58 -07:00
Isaac Visintainer
da53d8b058 moved to new branch with updated arvo 2018-10-11 13:19:30 -07:00
Joe Bryan
e76083b2b6 adds a ^? to fix namespace issues with old-zuse 2018-10-09 18:23:15 -04:00
Joe Bryan
a230b8e9fb removes %ames pki and old boot process 2018-10-05 21:01:07 -04:00
David Kerschner
cff1674d95 refactored generators from lib/sole into lib/generators 2018-10-02 16:36:08 -07:00
David Kerschner
69b5c6fcb0 Issue #61
Extracted %ask generator methods from sur/sole and put them in a core
under lib/sole
Fixed names in existing generators
2018-10-02 12:33:08 -07:00
Fang
b4631e9438
Merge pull request #803 from urbit/ethereum-signing
Ethereum transaction signing
2018-09-06 11:17:52 +02:00
Elliot Glaysher
2642efc8af Merge remote-tracking branch 'origin/collections' into release-candidate 2018-09-05 16:33:34 -07:00
Ted Blackman
2c7cbe5382 refactored +expect-schematic and completed first clay test 2018-09-04 16:37:01 -07:00
Isaac Visintainer
91bb34b943 hall custom permission rules 2018-09-04 16:23:24 -07:00
Fang
abd6329725 Remove outdated lib and sur files
They have been living in zuse for a while.
2018-09-04 00:25:08 +02:00
Isaac Visintainer
68a8f8d3fe renamed nutalk to landscape again 2018-08-30 10:59:11 -07:00
Elliot Glaysher
e049d6080b Run tests in alphabetical order. 2018-08-30 10:35:20 -07:00
Elliot Glaysher
bf3d61288e Further merge fixes. 2018-08-29 15:54:54 -07:00
Elliot Glaysher
ac089cef80 Merge remote-tracking branch 'origin/release-candidate' into remove-eny-from-tests 2018-08-29 15:45:10 -07:00
Ted Blackman
d88aa0c79e document +expect-schematic 2018-08-29 15:00:40 -07:00
Elliot Glaysher
03ed4dbee5 Rebuild the test support library so its easier and doesn't use entropy. 2018-08-29 14:57:22 -07:00
Ted Blackman
3b4ca6c8a9 +expect-schematic in ford test lib 2018-08-29 14:56:54 -07:00
Elliot Glaysher
51e46d2e03
Merge pull request #791 from urbit/expect-nu-eq
Redo +expect-eq and consolidate tests
2018-08-29 13:34:42 -07:00
Elliot Glaysher
fbfabe50d3 10: Mass rename +expect-nu-eq to +expect-eq 2018-08-29 11:09:37 -07:00
Elliot Glaysher
66c74bcd74 Merge remote-tracking branch 'origin/acme-factor' into expect-nu-eq 2018-08-29 10:25:30 -07:00
Fang
737b1d8ba1
Merge pull request #787 from urbit/crypto-additions
Includes in zuse:
* little-endian wrappers for the SHA and HMAC families,
* secp256k implementation,
* Blake2b implementation,
* Argon2 implementation,

And adds libraries for:
* BIP32 HD wallets,
* keygen, to match [keygen-js](/urbit/keygen-js).
2018-08-29 18:27:51 +02:00
Joe Bryan
44c16cf75f 5. moves :acme JWK, JWS and tests out of app 2018-08-29 09:17:58 -07:00
Joe Bryan
407584cda7 4. moves :acme RS256, PKCS1/8/10, PEM and tests out of app 2018-08-29 09:17:25 -07:00
Joe Bryan
7e982c0f2c 3. moves :acme RSA and tests out of app 2018-08-29 09:17:19 -07:00
Joe Bryan
b81dedf626 2. moves :acme ASN1, DER and tests out of app 2018-08-29 09:16:44 -07:00
Joe Bryan
bf6739574a 1. moves :acme base64 and tests out of app 2018-08-29 09:16:36 -07:00
Fang
a64066db24
Correct reference to keygen surs 2018-08-29 00:58:22 +02:00
Joe Bryan
f9ed9bf02f
Merge pull request #789 from urbit/ames-eth-boot
cleans up %ames and %jael in anticipation of greater ethereum integration
2018-08-28 15:16:54 -07:00
Elliot Glaysher
e88787dee0 1: Add +expect-nu-eq and use it where we were manually nest checking. 2018-08-28 14:22:06 -07:00
Fang
f1b713dc68
Rename soq to say in BIP32 lib 2018-08-28 21:36:19 +02:00
Joe Bryan
47855b6972 disables failures, re-enables successes, or fixes failing tests 2018-08-28 11:44:33 -07:00
Fang
67be11499b
Merge branch 'release-candidate' into crypto-additions 2018-08-28 16:35:53 +02:00
Joe Bryan
f35202a9fa updates %jael to encode aut/net keys and use +pass everywhere 2018-08-27 16:36:16 -07:00
Joe Bryan
4567fddb5f removes deprecated +crua, updates %eyre and lib/hood/write to use +crub 2018-08-27 16:35:37 -07:00
Joe Bryan
66bc5cdc4c finishes symbol renaming (fas->net) in mar/ and lib/ 2018-08-27 16:23:52 -07:00
Joe Bryan
50782bd1c9 Merge branch 'research-constitution' into release-candidate
* research-constitution: (120 commits)
  removes obsolete doccords-style comments
  Revert "fixy uno~by, other vor-based code duplication"
  Implement argon2.
  Use face over lark when available.
  Implement blake2b.
  Use ++rep over ++can when we can
  Use ++rev over ++swp, for safety.
  Clean up base58 en/decoding
  Rename secp point serialization arms
  Add HMAC-SHA1
  Put +=byts to use
  Restructure and complete BIP32 core
  Fix bug in RIPEMD-160 implementation.
  BIP32 key derivation logic. Messy, in dire need of restructuring.
  Fix bug in HMAC implementation.
  SHA-1 re-implementation, can account for leading zeroes.
  Converting points on curve to un/compressed numbers.
  RIPEMD-160 implementation.
  Start work on BIP32 support. Library file includes wrappers for the SHA family to make it take and produce sane byte order data, and a new HMAC implementation that depends on it. Also includes @belisarius222's secp256k1 implementation, plus experimental (and broken) support for other secp variants.
  Add ++rev to bit arithmetic, for reversing block order while accounting for leading zeroes.
  ...
2018-08-27 15:48:13 -07:00
Joe Bryan
a6f3c2f5f9 removes obsolete doccords-style comments 2018-08-27 15:33:32 -07:00
Elliot Glaysher
0286254b69 Merge branch 'ford-turbo' of github.com:urbit/arvo into ford-turbo 2018-08-23 15:15:50 -07:00
Ted Blackman
174ab25b14 remove lib/new-hoon and all uses 2018-08-23 15:03:55 -07:00
Elliot Glaysher
fb75c55286 Merge remote-tracking branch 'origin/collections' into ford-turbo 2018-08-23 10:41:29 -07:00
Ted Blackman
6105894e6e kill spam print 2018-08-22 22:35:38 -07:00
Ted Blackman
3a175e8802 print if an arm fails to compile to a test 2018-08-22 21:28:00 -07:00
Ted Blackman
84cc46e609 +test passes using %ct and presenting compile errors 2018-08-22 20:53:49 -07:00
Elliot Glaysher
b166a55792 Get the collections page displaying. Requires a second reload. 2018-08-21 14:13:58 -07:00
Ted Blackman
5f485716e1 Fixed |keep-ford and |wipe-ford 2018-08-20 17:30:56 -07:00
Isaac Visintainer
b4cbe1d45d collections-api-changes 2018-08-20 14:16:57 -07:00
Elliot Glaysher
ba0de921ab Merge remote-tracking branch 'origin/collections' into ford-turbo 2018-08-20 13:14:13 -07:00
Elliot Glaysher
222c5c82c0 Make %hall and %talk started on boot. 2018-08-20 11:40:48 -07:00
Curtis Yarvin
3c45fc55de Smoke-test boots with full ford-turbo merge. 2018-08-19 16:06:19 -07:00
Curtis Yarvin
0bceb27dbe Merge remote-tracking branch 'origin/ford-turbo' into ford-turbo-original 2018-08-17 15:26:51 -07:00
Curtis Yarvin
d062445ffb Merge commit '89a0a' into ford-turbo-original 2018-08-17 15:04:31 -07:00
Curtis Yarvin
a6b8407bc4 Building, without (strangely) command:lens 2018-08-15 17:23:37 -07:00
Curtis Yarvin
fa9c4636f9 Merge branch 'research-tome' into ford-turbo-original 2018-08-15 16:48:37 -07:00
Logan Allen
b387f70fdc Isaac and I merged hall read/unread with latest collections. 2018-08-15 16:40:29 -07:00
Ted Blackman
ddef8079a3 |keep and associated machinery 2018-08-15 13:58:54 -07:00
Fang
8fc069eb79 Standardize Argon2u parameters 2018-08-15 01:08:16 +02:00
Fang
3fc265a424 Rename entropy to ticket 2018-08-14 01:36:21 +02:00
Fang
aec81b4d50 Flatten spawn seeds to be derived from the owner seed 2018-08-14 01:36:03 +02:00
Fang
ecb911a53a Support revisions per key type, broaden interface 2018-08-13 21:33:27 +02:00
Fang
3d984ff87f Update keygen to match latest spec and have slightly better code style 2018-08-10 20:36:26 +02:00
Elliot Glaysher
dded51f0cd Start %collections on startup, too. 2018-08-09 16:06:14 -07:00
Elliot Glaysher
ab63875449 Merge branch 'collections-redesign' into ford-turbo-eyre-sec
The %collections app now starts.
2018-08-09 15:50:25 -07:00
Joe Bryan
b0ecbcd2ab Merge branch 'master' into collections
* master: (27 commits)
  Transfer ~tep to Rivendell and ~bes to NSPV.
  moar changes
  stylistic changes
  included full group information in scry
  clay permissions issue #749
  fixed outside urls
  fixed clay mut problem
  let us not include .html extensions in our urls if we don't want to
  Bump Ames :protocol-version from 1 to 2
  made hymn renderer unneccesary
  variety of bug-fixes
  first pass, basic functionality working
  Transition ~marzod's Ask duties to a dedicated ship
  Bump Ames :protocol-version from 0 to 1
  fixes +spin to preserve the type of the head of the product
  simplified the code
  now covers posts with spaces and no text
  Revert "Revert "Change %w care to return both @ud and @da cases""
  Revert "Change %w care to return both @ud and @da cases"
  Posts and Comments with no text ignored
  ...
2018-08-09 18:13:52 -04:00
Elliot Glaysher
11cb648399 Trying to get collections working 2018-08-09 14:59:33 -07:00
Elliot Glaysher
89a0a91c57 Boots without old ford. 2018-08-09 11:22:37 -07:00
Elliot Glaysher
8d224e1279 Next fix. 2018-08-08 15:14:26 -07:00
Elliot Glaysher
81bd72ee21 WIP: Commiting so I can get the ~+ patch. 2018-08-08 14:47:01 -07:00
Fang
6e33eea217 Use ++pit:nu:crub:crypto for network keypair generation 2018-08-08 01:01:04 +02:00
Fang
efe3b9a653 Add beginnings of keygen-hoon 2018-08-07 00:55:15 +02:00
Fang
45a5ee60a2 Implement BIP32 library 2018-08-06 21:23:30 +02:00
Isaac Visintainer
3e4b701d79 backend changes for comment integration 2018-08-01 16:08:01 -07:00
Isaac Visintainer
f273157e9d fixed missed renamings and added files to collections dir for ford testing 2018-08-01 11:32:34 -07:00
Elliot Glaysher
2b96d5e311 Merge remote-tracking branch 'origin/collections-redesign' into ford-turbo-eyre-sec 2018-07-31 16:26:45 -07:00
Isaac Visintainer
90289cfa1d some bugfixes and readded x-ship renderers 2018-07-31 13:56:38 -07:00
Elliot Glaysher
4363163319 Merge remote-tracking branch 'origin/collections-redesign' into ford-turbo-eyre-sec
Note: This ignores changes to clay for expediency, these may need to
be hand merged later.
2018-07-31 10:11:10 -07:00
Isaac Visintainer
ef18c51f5e collections redesign 2018-07-30 21:00:49 -07:00
Fang
8580e7b247 Add support for targeting the last x messages in a query range.
/circle/inbox/grams/-5/-0 gets the last 5 messages from the inbox, nothing more.
Closes #643.
2018-07-23 15:30:07 -07:00
Fang
676b188d5f Add correct byte-order HMAC family to zuse. 2018-07-13 14:50:15 +02:00
Fang
d53e33a3e0 Implement argon2.
Fully configurable as per the spec. Includes a new type, in addition to
i, d, and id: u. Similar to id in that it is a hybrid solution, but
slightly tweaked to be unique to Urbit's implementation.

Initially implemented as a direct port from the pure Python
implementation, then lightly rewritten to be more Hoon-ish.
https://pypi.org/project/argon2pure/
2018-07-05 22:44:37 +02:00
Fang
fb08ab8fd1 Use face over lark when available. 2018-07-05 22:40:03 +02:00
Fang
287d10619e Implement blake2b.
It's not generalized yet, so blake2s isn't supported.
2018-07-02 22:10:06 +02:00
Fang
7c34009e8e Use ++rep over ++can when we can 2018-06-29 13:10:38 +02:00
Fang
23b177a3d2 Use ++rev over ++swp, for safety. 2018-06-29 13:08:58 +02:00