Skip to content

nbah1990/goncanode

Repository files navigation

goncanode

Simplify https://github.com/malikzh/NCANode usage for Go.

Usage:

v := types.NCAnodeV30                   // or types.NCAnodeV10
nH := goncanode.Create(entities.Options{
    ServiceUrl: conf.NcaNode.ServiceUrl,// http://127.0.0.1:14579
    P12base64: conf.NcaNode.P12Base64,  // base64 encoded p12 cert
    P12pass:   conf.NcaNode.P12Pass,    // p12 cert password
    Timeout: 1500 * time.Millisecond,   // context waiting timeout
    Version: &v,                        // NCANode version (differences in API)
})

sr, err := nH.SignWithSecurityHeader(r.Context(), xmlString, types.GOST34311)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages