Giter Club home page Giter Club logo

Comments (5)

gmaxwell avatar gmaxwell commented on August 20, 2024

why wouldn't it? n_pubkeys = 1 is well defined and has an obvious sensible behaviour. If the interface forces more than one then a caller needs to handle an additional corner case that would otherwise just work.

from secp256k1-zkp.

real-or-random avatar real-or-random commented on August 20, 2024

Hm. You can also combine the same pubkey n times with itself. I don't have a use case for this either but it's not broken or wrong in any sense, so I tend not to put restrictions here. But you're right, it's somehow confusing. I'm indifferent.

from secp256k1-zkp.

ysangkok avatar ysangkok commented on August 20, 2024

Ok, if the current behavior is to be kept, it would be nice to document it. How about a footnote in musig.md that says that the API supports a single signer? The footnote could be referenced each time a plural like "participants" or "public keys" is used.

from secp256k1-zkp.

apoelstra avatar apoelstra commented on August 20, 2024

I'd rather not complicate the exposition for the sake of this usecase. The current text makes sense for n=1 (aside from being ungrammatical) and it never occurred to me that n=1 might not work. Though perhaps I am just too close to this.

from secp256k1-zkp.

sipa avatar sipa commented on August 20, 2024

I don't understand what's the issue here. Does the function not do exactly what you'd expect with 1 input?

Look at Python's sum function (https://docs.python.org/3/library/functions.html#sum). It also does not list a special case for only one input.

from secp256k1-zkp.

Related Issues (20)

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.