Skip to content

baibaratsky/go-wmsigner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebMoney Signer

Build Status Coverage Status GitHub license

Provides a convenient way to sign your requests to WebMoney API in Go with no need to run executables.

Installation

go get github.com/baibaratsky/go-wmsigner

Usage

    package main

    import "github.com/baibaratsky/go-wmsigner"

    func main() {
        signer, err := wmsigner.New("wmid", "/full/path/to/the/key.kwm", "password")
        if err != nil {
            panic(err.Error())
        }

        signature, err := signer.Sign("Data to be signed")
        if err != nil {
            panic(err.Error())
        }
    }