Skip to content
New issue

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

Ipns name resolution #45

Merged
merged 111 commits into from
Oct 9, 2014
Merged

Ipns name resolution #45

merged 111 commits into from
Oct 9, 2014

Commits on Oct 1, 2014

  1. Configuration menu
    Copy the full SHA
    235a767 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b5fd949 View commit details
    Browse the repository at this point in the history
  3. add run command

    whyrusleeping authored and jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    da1890e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c41a971 View commit details
    Browse the repository at this point in the history
  5. some bugfixes and added logging

    whyrusleeping authored and jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    8ddfb57 View commit details
    Browse the repository at this point in the history
  6. implement ipns publisher code

    whyrusleeping authored and jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    4c0f18c View commit details
    Browse the repository at this point in the history
  7. add routing resolver test

    whyrusleeping authored and jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    2aa2b8c View commit details
    Browse the repository at this point in the history
  8. address comments from the PR #45

    whyrusleeping authored and jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    d1f0112 View commit details
    Browse the repository at this point in the history
  9. Address concerns from PR

    whyrusleeping authored and jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    1a38865 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a65e860 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    16aa636 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    375a38c View commit details
    Browse the repository at this point in the history
  13. implement initial ipns filesystem interface as well as plumbing comma…

    …nd for publishing
    whyrusleeping authored and jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    e61c597 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7f5e137 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    006b68b View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    6080944 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    3b8b9e6 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    ed2fbd0 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    9b0c578 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    54142b2 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    9652ada View commit details
    Browse the repository at this point in the history
  22. vendoring ipns things

    jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    f085d59 View commit details
    Browse the repository at this point in the history
  23. remove merge issue (logger)

    jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    7cd9e4d View commit details
    Browse the repository at this point in the history
  24. RPCAddress -> ddresses.API

    jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    11a8826 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    26a481a View commit details
    Browse the repository at this point in the history
  26. cmd/ipfs/pin.go now uses MakeCommand

    + added recursive pinning func
    jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    728f17d View commit details
    Browse the repository at this point in the history
  27. pin: add depth arg.

    jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    14a384d View commit details
    Browse the repository at this point in the history
  28. command output nit

    jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    1cfb0ff View commit details
    Browse the repository at this point in the history
  29. command output nit

    jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    b787c70 View commit details
    Browse the repository at this point in the history
  30. comment + import nits

    jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    41aab9f View commit details
    Browse the repository at this point in the history
  31. security TODO warning

    jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    19b0a28 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    ba510cb View commit details
    Browse the repository at this point in the history
  33. cleanup logging setup.

    - should not be on init, because need debug flag
    jbenet committed Oct 1, 2014
    Configuration menu
    Copy the full SHA
    aa79f38 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2014

  1. Configuration menu
    Copy the full SHA
    b6a59c9 View commit details
    Browse the repository at this point in the history
  2. lint

    jbenet committed Oct 2, 2014
    Configuration menu
    Copy the full SHA
    33dfa6f View commit details
    Browse the repository at this point in the history
  3. fix arg bug

    jbenet committed Oct 2, 2014
    Configuration menu
    Copy the full SHA
    ee1ba16 View commit details
    Browse the repository at this point in the history
  4. Bugfix: daemon wg sync

    jbenet committed Oct 2, 2014
    Configuration menu
    Copy the full SHA
    3818244 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2bd8431 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    330ee8c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e91b2b8 View commit details
    Browse the repository at this point in the history
  8. logging on gen

    jbenet committed Oct 2, 2014
    Configuration menu
    Copy the full SHA
    7bf7afb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    068c037 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    bc0769e View commit details
    Browse the repository at this point in the history
  11. remove extra printf

    jbenet committed Oct 2, 2014
    Configuration menu
    Copy the full SHA
    f923652 View commit details
    Browse the repository at this point in the history
  12. remove old cat

    jbenet committed Oct 2, 2014
    Configuration menu
    Copy the full SHA
    a76f6af View commit details
    Browse the repository at this point in the history
  13. /rpcaddr should be storing a multiaddr

    client expects a multiaddr. server was writing a bsaddr
    jbenet committed Oct 2, 2014
    Configuration menu
    Copy the full SHA
    41bc355 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    80c64ff View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    d872e0c View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2014

  1. Configuration menu
    Copy the full SHA
    4727535 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc66b69 View commit details
    Browse the repository at this point in the history
  3. godeps: updated datastore

    jbenet committed Oct 3, 2014
    Configuration menu
    Copy the full SHA
    8a7f6ac View commit details
    Browse the repository at this point in the history
  4. added core logging

    jbenet committed Oct 3, 2014
    Configuration menu
    Copy the full SHA
    88d804e View commit details
    Browse the repository at this point in the history
  5. + fs ds + thread safe

    jbenet committed Oct 3, 2014
    Configuration menu
    Copy the full SHA
    2ce9415 View commit details
    Browse the repository at this point in the history
  6. use string datastore keys.

    jbenet committed Oct 3, 2014
    Configuration menu
    Copy the full SHA
    612be59 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e7aa116 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    791daf5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7bb2bd6 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2014

  1. DNSResolver: use isd.IsDomain

    this commit dedicated to @whyrusleeping
    jbenet committed Oct 4, 2014
    1 Configuration menu
    Copy the full SHA
    73b2058 View commit details
    Browse the repository at this point in the history
  2. make the tests pass!

    whyrusleeping committed Oct 4, 2014
    Configuration menu
    Copy the full SHA
    11332fc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    02de522 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0c7ff7b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5423a00 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c64add1 View commit details
    Browse the repository at this point in the history
  7. initialize loggers at ERROR

    jbenet committed Oct 4, 2014
    Configuration menu
    Copy the full SHA
    7e1cd59 View commit details
    Browse the repository at this point in the history
  8. loggers: set level

    jbenet committed Oct 4, 2014
    Configuration menu
    Copy the full SHA
    0c8ae76 View commit details
    Browse the repository at this point in the history
  9. add: only show added once.

    jbenet committed Oct 4, 2014
    Configuration menu
    Copy the full SHA
    ee1d1ac View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    25b36d1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    faaaa22 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a0d77db View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    16e42f8 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2014

  1. Configuration menu
    Copy the full SHA
    a13baff View commit details
    Browse the repository at this point in the history
  2. print out key if 'malformed'

    jbenet committed Oct 5, 2014
    Configuration menu
    Copy the full SHA
    7e83982 View commit details
    Browse the repository at this point in the history
  3. bump logging to ERROR

    jbenet committed Oct 5, 2014
    Configuration menu
    Copy the full SHA
    c0250f3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d7d3af3 View commit details
    Browse the repository at this point in the history
  5. Bugfix: "Malformed Public Key" Error

    This commit fixed the notoriously annoying "Malformed Public Key"
    problem. The issue was that sometimes the byte representation of
    the points (x,y in big.Int) generated would be one less byte than
    expected. This is simply because (* big.Int) Write uses the least
    amount of bytes needed for the int.
    
    I instead changed the marshalling/unmarshalling to do exactly
    what stdlib crypto/tls does: use `ellipctic.Marshal` which marshals
    according to the ANSI X9.62 standard.
    
    http://golang.org/pkg/crypto/elliptic/#Marshal
    http://golang.org/src/pkg/crypto/tls/key_agreement.go#L214
    
    ```Go
    // crypto/tls
    ka.privateKey, x, y, err = elliptic.GenerateKey(ka.curve, config.rand())
    ecdhePublic := elliptic.Marshal(ka.curve, x, y)
    
    // ipfs/crypto
    priv, x, y, err := elliptic.GenerateKey(curve, rand.Reader)
    pubKey := elliptic.Marshal(curve, x, y)
    ```
    
    ((Warning: we're using `rand.Reader` directly, which we shouldn't
    do, as it can be seeded. We should use a configured source, as
    crypto/tls. Flagged in #143))
    
    This makes me think we should re-use a lot of their datastructures
    and functions directly (e.g. ecdheKeyAgreement)
    
    Fixed: #135
    
    cc @Bren2010 @whyrusleeping
    jbenet committed Oct 5, 2014
    1 Configuration menu
    Copy the full SHA
    5136c78 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2014

  1. working on dag modification structures, factored out the data format …

    …into an importer subpackage and added more ipns tests
    whyrusleeping committed Oct 6, 2014
    Configuration menu
    Copy the full SHA
    5592030 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    af1ce6e View commit details
    Browse the repository at this point in the history
  3. u.Hash - error

    the u.Hash error can be safely ignored (panic) because multihash
    only fails from the selection of hash function. If the fn + length
    are valid, it won't error.
    
    cc @whyrusleeping
    jbenet committed Oct 6, 2014
    Configuration menu
    Copy the full SHA
    f3ae0e8 View commit details
    Browse the repository at this point in the history
  4. updated multiaddr

    jbenet committed Oct 6, 2014
    Configuration menu
    Copy the full SHA
    20a20c9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    910a76e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    77fccaa View commit details
    Browse the repository at this point in the history
  7. 10 Configuration menu
    Copy the full SHA
    3591e10 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2014

  1. Configuration menu
    Copy the full SHA
    5c802ae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    98cde15 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6e0cfb3 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2014

  1. Configuration menu
    Copy the full SHA
    bdaee9b View commit details
    Browse the repository at this point in the history
  2. make tests pass

    whyrusleeping committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    5ba2efc View commit details
    Browse the repository at this point in the history
  3. added u.Key.String

    jbenet committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    b98e488 View commit details
    Browse the repository at this point in the history
  4. bugfix: use consistent interface

    We'll want a `type blocks.Block interface {}` later, but
    for now, make sure Blockstore uses ptrs for both Get and Put.
    
    + fix NewBlock output compile error
    jbenet committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    7c56795 View commit details
    Browse the repository at this point in the history
  5. changed logging, in dht and elsewhere

    - use log.* instead of u.*
    - use automatic type conversions to .String()
      (Peer.String() prints nicely, and avoids calling b58 encoding
      until needed)
    jbenet committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    66839fa View commit details
    Browse the repository at this point in the history
  6. one last failed test

    jbenet committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    8e9b10f View commit details
    Browse the repository at this point in the history
  7. init SetupLoggers

    this is useful so that loggers are all setup during tests
    jbenet committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    ffe2bdc View commit details
    Browse the repository at this point in the history
  8. ipns TestFastRepublish

    jbenet committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    459e0d5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cf6efc7 View commit details
    Browse the repository at this point in the history
  10. New NameSystem interface

        type NameSystem interface {
          Resolver
          Publisher
        }
    
    should say it all.
    
    cc @whyrusleeping
    jbenet committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    2944360 View commit details
    Browse the repository at this point in the history
  11. vendor things

    jbenet committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    dc2dbdb View commit details
    Browse the repository at this point in the history
  12. add more comments!

    whyrusleeping committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    916fc54 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    15a4701 View commit details
    Browse the repository at this point in the history
  14. 1 Configuration menu
    Copy the full SHA
    093c8fb View commit details
    Browse the repository at this point in the history
  15. keytransform ds

    jbenet committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    9ebf3ae View commit details
    Browse the repository at this point in the history
  16. make vendor is your friend

    jbenet committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    0ffc203 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    dc6fdd3 View commit details
    Browse the repository at this point in the history
  18. comment out debug msg

    jbenet committed Oct 8, 2014
    Configuration menu
    Copy the full SHA
    31cc605 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    1aafd28 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    4d7b87d View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    38177b4 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2014

  1. Configuration menu
    Copy the full SHA
    c565309 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ac1170 View commit details
    Browse the repository at this point in the history
  3. ipfs name cmd improvements

    - cleaned up cmd help
    - ipfs name publish [<name>] <ref>
    - ipfs name resolve [<name>]
    - publish validates <ref>
    - both validate n args
    jbenet committed Oct 9, 2014
    Configuration menu
    Copy the full SHA
    2fa43ce View commit details
    Browse the repository at this point in the history
  4. Merge branch 'master' into ipns

    Conflicts:
    	cmd/ipfs/ipfs.go
    jbenet committed Oct 9, 2014
    Configuration menu
    Copy the full SHA
    ab83c52 View commit details
    Browse the repository at this point in the history
  5. fixed resolver test

    jbenet committed Oct 9, 2014
    Configuration menu
    Copy the full SHA
    a53813c View commit details
    Browse the repository at this point in the history