A multiformat-inspired go module for working with multiple kinds of keypairs.

Related tags

go-multikeypair
Overview

go-multikeypair

Go Reference Go Go Report Card build Slack

A multiformats-inspired module for encoding cryptographic keypairs.

Install

At a shell within your go module:

go get github.com/proofzero/go-multikeypair

Build Instructions

go build

Testing

go test

Usage

Pseudo-golang for excercising the Encode and Decode API for a given hardcoded keypair of a given crypto algorithm:

// Keys:
private := []byte("Wn3Sf5Ke/3:PA:Tm{KCf59Wg6j%/g*#d")
public := []byte("cv-sB6?r*RW8vP5TuMSv_wvw#[email protected]%[email protected]!P-S2gYVLve!PfdC#kew5Q7U")

// Cypher:
code := multikeypair.ED_25519
name := multikeypair.Codes[ED_25519]

// Encode:
mk, err := multikeypair.Encode(private, public, code)
if err != nil {
    panic(err)
}

// Decode:
kp, err := multikeypair.Decode(mk)
if err != nil {
    panic(err)
}

Documentation is inline with code as comments. See tests in keypair_test.go.

Issues
  • fix(lint): Fix goreportcard issues.

    fix(lint): Fix goreportcard issues.

    Why

    Go Report Card gives us a B -- yikes! This fixes those issues for an A+.

    opened by alfl 0
  • Add matrix badge

    Add matrix badge

    null

    opened by maurerbot 0
  • docs: add contribution section to README

    docs: add contribution section to README

    Why

    Tell users how they can contribute if they feel so moved.

    What

    • [x] add a Contribute section to the repo README

    Notes

    • N/A
    opened by crimeminister 0
  • feat: add support for DSA keypair

    feat: add support for DSA keypair

    Why

    DSA is a standard signature scheme (FIPS 186-4) and users may wish to work with a DSA multikeypair.

    What

    • [ ] add constant(s) to keypair.go that correspond to DSA keypair type(s)

    Notes

    • N/A
    help-wanted good first issue 
    opened by crimeminister 0
  • feat: add support for RSA keypair

    feat: add support for RSA keypair

    Why

    RSA is a common cryptographic algorithm and users may want to work with an RSA multikeypair.

    What

    • [ ] add constant(s) to keypair.go that correspond to RSA keypair type(s)

    Notes

    • N/A
    help-wanted good first issue 
    opened by crimeminister 0
Owner
kubelt
kubelt
beego is an open-source, high-performance web framework for the Go programming language.

Beego Beego is used for rapid development of enterprise application in Go, including RESTful APIs, web apps and backend services. It is inspired by To

beego Framework 27k Sep 26, 2021
🐶 Next generation building tool for nothing

Oscar ?? Next generation building tool for nothing Motivation Imitation is the sincerest form of flattery. Oscar is yet another nonsense activity gene

dongdong 66 May 25, 2021
Flamingo Framework and Core Library. Flamingo is a go based framework for pluggable web projects. It is used to build scalable and maintainable (web)applications.

Flamingo Framework Flamingo is a web framework based on Go. It is designed to build pluggable and maintainable web projects. It is production ready, f

Flamingo 232 Sep 20, 2021
golang library for creating web application

RUI library The RUI (Remoute User Interface) library is designed to create web applications in the go language. The peculiarity of the library is that

Alexei Anoshenko 7 Sep 13, 2021
Simple web framework for go, still quite beta at this point

WFDR Framework - Beta Release New 18/Feb/2012: Updated for go 1.0, new directory layout to take advantage of the go build tool. Background There's a m

null 23 Feb 11, 2021
Flexible E-Commerce Framework on top of Flamingo. Used to build E-Commerce "Portals" and connect it with the help of individual Adapters to other services.

Flamingo Commerce With "Flamingo Commerce" you get your toolkit for building fast and flexible commerce experience applications. A demoshop using the

Flamingo 211 Sep 21, 2021
Gin is a HTTP web framework written in Go (Golang).

Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.

Gin-Gonic 51.6k Sep 23, 2021
A quick and easy way to setup a RESTful JSON API

Go-Json-Rest A quick and easy way to setup a RESTful JSON API Go-Json-Rest is a thin layer on top of net/http that helps building RESTful JSON APIs ea

Antoine Imbert 3.5k Sep 16, 2021
Rocinante is a gin inspired web framework built on top of net/http.

Rocinante Rocinante is a gin inspired web framework built on top of net/http. ⚙️ Installation $ go get -u github.com/fskanokano/rocinante-go ⚡️ Quicks

null 3 Jul 27, 2021
An opinionated productive web framework that helps scaling business easier.

appy An opinionated productive web framework that helps scaling business easier, i.e. focus on monolith first, only move to microservices with GRPC la

appist 108 Sep 16, 2021
REST Layer, Go (golang) REST API framework

REST Layer REST APIs made easy. REST Layer is an API framework heavily inspired by the excellent Python Eve. It helps you create a comprehensive, cust

Olivier Poitrey 1.1k Sep 20, 2021
⚡️ Express inspired web framework written in Go

Fiber is an Express inspired web framework built on top of Fasthttp, the fastest HTTP engine for Go. Designed to ease things up for fast development w

Fiber 15.4k Sep 22, 2021
🍐 Elegant Golang REST API Framework

An Elegant Golang Web Framework Goyave is a progressive and accessible web application framework focused on REST APIs, aimed at making backend develop

Goyave 892 Sep 22, 2021
Pleasures for Web in Golang

Rex is a library for performant & modular web development in Go, designed to work directly with net/http. Supported Versions v1.4 v1.5 v1.6 v1.7 v1.8

GoAnywhere 31 Dec 22, 2020
lightweight, idiomatic and composable router for building Go HTTP services

chi is a lightweight, idiomatic and composable router for building Go HTTP services. It's especially good at helping you write large REST API services

go-chi 10.1k Sep 21, 2021
A Go framework for building JSON web services inspired by Dropwizard

Tiger Tonic A Go framework for building JSON web services inspired by Dropwizard. If HTML is your game, this will hurt a little. Like the Go language

Richard Crowley 996 Sep 7, 2021
Swagger + Gin = SwaGin, a web framework based on Gin and Swagger

Swagger + Gin = SwaGin Introduction SwaGin is a web framework based on Gin and Swagger, which wraps Gin and provides built-in swagger api docs and req

long2ice 15 Aug 31, 2021
Swagger + Gin = SwaGin, a web framework based on Gin and Swagger

Swagger + Gin = SwaGin Introduction SwaGin is a web framework based on Gin and Swagger, which wraps Gin and provides built-in swagger api docs and req

long2ice 15 Aug 31, 2021
Hexya business application development framework

Hexya Hexya is an open source ERP and a business application development framework written in Go. This repository houses the business application deve

Hexya 318 Sep 2, 2021