Commit Graph

1249 Commits

Author SHA1 Message Date
Isaac Visintainer
0df228f165 added jet hints to hall, collections, gall 2018-11-07 14:31:31 -08:00
Isaac Visintainer
406c38a5b8 removed soft, moved bulk of collections logic to a lib for better caching 2018-11-07 14:31:31 -08:00
Isaac Visintainer
1e1f9231b9 fixed behavior for broken umd 2018-11-07 14:31:31 -08:00
Isaac Visintainer
a06be71df2 collections fixes: comment snippets, double reporting, date field error 2018-11-07 14:31:31 -08:00
Isaac Visintainer
026f02cb63 collections fixes: post editing, parent config, sorting 2018-11-07 14:31:31 -08:00
Fang
2a23548a91 Remove outdated version of BIP32 library 2018-11-07 13:44:06 -08:00
Joe Bryan
cb56ee3a9b tracks message length in rs256 signatures 2018-11-06 18:12:05 -05:00
Fang
37e2a186da Merge branch 'release-candidate' into keygen-changes 2018-11-06 10:37:37 -08:00
Fang
fc4e8ab275 Add type for full wallet 2018-11-05 17:58:47 -08:00
Joe Bryan
c8f1b4d5a1 Merge branch 'release-candidate' into ames-eth-keys
* release-candidate: (33 commits)
  update pin-vere-commit.txt
  Bug fix for metal-wrapping runes
  Remove old-zuse (#867)
  Type Analysis (#865)
  remove clam from error sigpam
  Fix compiler error.
  Remove temporary type analysis work.
  Remove ++cook from ++auri parsing
  Remove forced ssl upgrade for localhost http reqs
  moved to new branch with updated arvo
  11. demacrotizes %6, %7, %8, and %9
  10. updates %5 to require two subformulas (4K)
  9. emits %10 (4K)
  8. adds and implements edit (%10) (4K)
  7. removes %13 and %14 (4K)
  6. emits %11 and %12 (4K)
  5. implements hint at %11 and wish at %12 (4K)
  4. removes %10 and %11 (4K)
  3. emits %13 and %14 (4K)
  2. implements %13 and %14 (4K)
  ...
2018-11-01 00:18:54 -04:00
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
Joe Bryan
d8649441bf updates oauth libraries to use the real %eyre host scry 2018-06-29 00:02:34 -04:00
Joe Bryan
a20122a410 auto-starts :acme 2018-06-29 00:02:34 -04:00
Fang
004ac54d28 Clean up base58 en/decoding 2018-06-29 01:11:55 +02:00
Fang
4352293d44 Rename secp point serialization arms 2018-06-29 00:52:42 +02:00
Fang
19144c7610 Add HMAC-SHA1 2018-06-29 00:46:08 +02:00
Fang
a756d69b8f Put +=byts to use 2018-06-29 00:34:07 +02:00
Fang
9aba5593a6 Restructure and complete BIP32 core
It now contains features it was missing, and those have been verified
for correctness. Behaves more like an object now, with initialization
and state change arms, and easy ways to get data out.
2018-06-29 00:12:14 +02:00
Fang
7a02a6c796 Fix bug in RIPEMD-160 implementation. 2018-06-28 20:39:45 +02:00
Fang
125956413d BIP32 key derivation logic.
Messy, in dire need of restructuring.
2018-06-28 00:47:20 +02:00
Fang
d2770cd221 Fix bug in HMAC implementation. 2018-06-27 23:17:03 +02:00
Fang
2d7163876c SHA-1 re-implementation, can account for leading zeroes. 2018-06-27 20:21:16 +02:00
Fang
beae8cc01a Converting points on curve to un/compressed numbers. 2018-06-27 20:20:35 +02:00
Fang
3ac9b33697 RIPEMD-160 implementation. 2018-06-27 01:03:18 +02:00
Elliot Glaysher
87cbea377d Remove indirect hoons and fix up callsites using // 2018-06-26 13:52:56 -07:00
Fang
f5f9c209d0 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.
2018-06-22 20:33:53 +02:00
Joe Bryan
cd4330a024 auto-starts :dns, adds generator to configure authority 2018-06-20 19:24:13 -04:00
Joe Bryan
9d72b8f92b Merge branch 'collections' into collections-merge
* collections: (127 commits)
  Revert "cross-ship permissions works now"
  deleted more unused files, updated json arm of collections mark
  removed unused index file (was used for debug)
  cross-ship permissions works now
  rendered MVE css and js 272af56804f822c23efa645aafcf1d5d8a8bfdff
  simplified latest alias
  new 'latest' page in colls
  deleted a swp file
  mve updates f83035d162dd60107b45798117cf924437070798
  isaac's eyre changes to polling parameters as requested by Logan
  rendered MVE f0a44584883e8789ec5bab9c80334ae0ee251e02
  source new circle to inbox in collections app
  relative href
  removed topic text from collection json
  patch back in realnet ames (was testnet ames in xship-wrap
  collections now sends invites to whitelist
  aded fascen to pass along fasbuc params
  add x-htm wrappers for &htm
  rename default eyre mark to x-urb, do xhsip on x- prefix requests
  updated json endpoints in accordance with logan's requests
  ...
2018-06-19 20:51:22 -04:00
Elliot Glaysher
ddf0334b15 Switch Gall to use the Turbo vane.
This fixes Gall and userland apps so that they boot. It then disables
%hall and %talk, which will only boot with the +fond jet disabled.
(Otherwise, we get a bail from the jet.)
2018-06-13 13:12:32 -07:00
Anthony Arroyo
3b982bdf8b new 'latest' page in colls 2018-06-04 10:57:31 -07:00
Elliot Glaysher
bc17312fa3 Merge branch 'master' into ford-turbo 2018-06-04 09:59:44 -07:00
Anthony Arroyo
db2d0ac428 mve updates f83035d162dd60107b45798117cf924437070798 2018-06-01 17:46:51 -07:00
Curtis Yarvin
2c2a680c57 Introduced +$ notation. 2018-06-01 14:31:10 -07:00
Ted Blackman
6fae175bba WIP trying to get dontjo working 2018-05-31 17:14:39 -07:00
Ted Blackman
0b3713ce07 basic transfusion succeeded 2018-05-31 11:25:06 -07:00
Ted Blackman
873e073faf transfusion into kernel as %t vane 2018-05-30 16:25:28 -07:00
Ted Blackman
48cfdae72c fix Ford call signature and tests 2018-05-30 13:50:14 -07:00
Ted Blackman
f2f250a8ff %mash schematic 2018-05-29 14:31:23 -07:00
Ted Blackman
3f31b36014 fix error handling in +make-join 2018-05-29 14:30:37 -07:00
Fang
5a25e87dec Remove old jael structs from old-zuse. 2018-05-29 22:43:49 +02:00
Ted Blackman
bbc38adddc %join schematic 2018-05-29 12:06:27 -07:00
Ted Blackman
03be29f160 %pact cleanup and docs 2018-05-29 09:48:43 -07:00
Curtis Yarvin
ddb0fc22f4 Chapter names for everyone. 2018-05-28 23:42:16 -07:00
Ted Blackman
9bfece90c9 %pact schematic and first of two needed tests 2018-05-28 23:10:47 -07:00
Ted Blackman
0ea2e51046 minor cleanup 2018-05-28 23:08:34 -07:00
Curtis Yarvin
a29b22357d Some renaming and stuff. 2018-05-27 12:15:15 -07:00
Ted Blackman
afb1532241 %diff schematic 2018-05-27 09:35:02 -07:00
Keaton Dunsford
a113515fba Transition ~marzod's Ask duties to a dedicated ship
This commit allows Ask app responsibility/load to get taken off of
~marzod and assigned to a dedicated Ask ship: currently, ~socden-malzod,
a child of Tlon's ops star, ~dopzod.
2018-05-25 15:18:17 -07:00
Curtis Yarvin
a26105370b Old help totally cleaned out. 2018-05-24 15:39:56 -07:00
Ted Blackman
c609f4d210 Fix %bake for marks 2018-05-24 15:31:29 -07:00
Elliot Glaysher
42e3c9312f Execute /mark/ in scaffolds 2018-05-24 10:25:54 -07:00