MCPcopy Create free account
hub / github.com/NextDotID/proof_server / DecodeString

Function DecodeString

util/util.go:26–32  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

24}
25
26func DecodeString(s string) ([]byte, error) {
27 sigBytes, err := base64.StdEncoding.DecodeString(s)
28 if err == nil {
29 return sigBytes, nil
30 }
31 return base1024.DecodeString(s)
32}

Callers 8

validateTextMethod · 0.92
validatePayloadMethod · 0.92
validateTextMethod · 0.92
validateTextMethod · 0.92
validateBodyMethod · 0.92
ValidateMethod · 0.92
validateRecordMethod · 0.92
ValidateMethod · 0.92

Calls 1

DecodeStringFunction · 0.92

Tested by

no test coverage detected