GithubHelp home page GithubHelp logo

libp2p / go-libp2p-peer Goto Github PK

View Code? Open in Web Editor NEW
41.0 26.0 15.0 120 KB

[DEPRECATED] PKI based identities for use in go-libp2p; use https://github.com/libp2p/go-libp2p-core/ instead.

License: MIT License

Go 100.00%

go-libp2p-peer's Introduction

go-libp2p-peer

GoDoc Coverage Status Build Status Discourse posts

PKI based identities for use in go-libp2p

Install

TODO

Usage

TODO

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.

Want to hack on IPFS?

License

MIT


The last gx published version of this module was: 3.1.2: QmYVXrKrKHDC9FobgmcmshCDyWwdrfwfanNQN4oxJ9Fk3h

go-libp2p-peer's People

Contributors

anacrolix avatar geoah avatar hsanjuan avatar jbenet avatar justindrake avatar keks avatar kevina avatar kishansagathiya avatar kubuxu avatar magik6k avatar raulk avatar richardlitt avatar stebalien avatar vyzo avatar whyrusleeping avatar yusefnapora avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-libp2p-peer's Issues

abnormal number of dependencies

The recursive dependency tree for this package is pretty large, mostly because we import the libp2p-crypto package and that contains secio. We should break those apart more

[Un]MarshalBinary routines for peer.ID?

I was unsure if there was any reasoning behind supporting so many Encoding/Decoding routines and yet not having the interfaces for MarshalBinary/UnmarshalBinary. I do acknowledge the fact that the existing interfaces do suffice most needs but I was just wondering if there could be room for these methods.

strange issue with ED25519 keys

I have a test failing in my code (below) and I think it shouldn't. Perhaps I'm missing something though - was wondering if this is a bug, or I have incorrect assumptions somewhere:

func TestPubKey(t *testing.T) {
	priv, _, _ := crypto.GenerateEd25519Key(mrand.New(mrand.NewSource(0)))
	id1, _ := peer.IDFromEd25519PublicKey(priv.GetPublic())
	id2, _ := peer.IDFromPrivateKey(priv)
	assert.Equal(t, id1.Pretty(), id2.Pretty(), "should be equal?") // fails...
}

p.s. I found that IDFromPublicKey works instead of IDFromEd25519PublicKey but the difference still seems strange...

problems with inlining ID

Hi folks,

Commit e41f12f that adds inlining breaks my app which expects IDFromPublicKey to always return a sha2-256 hash. Is there a reason why this new "feature" isn't a parameter, or setable in some way by the client?

Thanks.

Update libp2p-crypto dependency

Can we pull in the newly published libp2p-crypto (with ecc keys)?

version 1.1.0 is QmVC4w2mj5S5SoRH4dk91PjLvdaaKJDJ1aBFnXVLCKNL6C

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.