Commit 05746443 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Use errors with stack traces

parent 6cf180b2
......@@ -3,13 +3,12 @@ package irmago
import (
"crypto/sha256"
"encoding/binary"
"encoding/hex"
"encoding/json"
"errors"
"math/big"
"time"
"encoding/hex"
"github.com/go-errors/errors"
"github.com/mhe/gabi"
)
......
......@@ -3,7 +3,7 @@ package irmago
import (
"encoding/xml"
"errors"
"github.com/go-errors/errors"
)
// SchemeManager describes a scheme manager.
......
......@@ -4,10 +4,10 @@ import (
"crypto/rand"
"crypto/sha256"
"encoding/base64"
"errors"
"math/big"
"strconv"
"github.com/go-errors/errors"
"github.com/mhe/gabi"
)
......
package irmago
import (
"errors"
"math/big"
"crypto/rand"
"math/big"
"sort"
"github.com/credentials/go-go-gadget-paillier"
"github.com/go-errors/errors"
"github.com/mhe/gabi"
)
......
......@@ -3,10 +3,11 @@ package irmago
import (
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"math/big"
"strings"
"github.com/go-errors/errors"
)
// Status encodes the status of an IRMA session (e.g., connected).
......
......@@ -2,13 +2,12 @@ package irmago
import (
"encoding/json"
"errors"
"math/big"
"github.com/go-errors/errors"
"github.com/mhe/gabi"
)
func (pki *publicKeyIdentifier) MarshalJSON() ([]byte, error) {
temp := struct {
Issuer map[string]string `json:"issuer"`
......
......@@ -3,13 +3,13 @@ package irmago
import (
"crypto/sha256"
"encoding/asn1"
"errors"
"fmt"
"log"
"math/big"
"strconv"
"time"
"github.com/go-errors/errors"
"github.com/mhe/gabi"
)
......
package irmago
import (
"crypto/rand"
"encoding/hex"
"encoding/json"
"errors"
"io/ioutil"
"os"
"crypto/rand"
"encoding/hex"
"path"
"time"
"github.com/go-errors/errors"
"github.com/mhe/gabi"
)
......
......@@ -3,11 +3,11 @@ package irmago
import (
"encoding/json"
"encoding/xml"
"errors"
"html"
"io/ioutil"
"math/big"
"github.com/go-errors/errors"
"github.com/mhe/gabi"
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment