Skip to content
Snippets Groups Projects
Commit 18063513 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Move proto user struct into user struct

parent 973aa8ac
No related branches found
No related tags found
4 merge requests!510Release,!207WIP: Client Restructure,!203Symmetric broadcast,!197WIP: Convert API to use new restructure
package user
import (
"gitlab.com/elixxir/crypto/cyclic"
"gitlab.com/xx_network/crypto/signature/rsa"
"gitlab.com/xx_network/primitives/id"
)
type Proto struct {
//General Identity
TransmissionID *id.ID
TransmissionSalt []byte
TransmissionRSA *rsa.PrivateKey
ReceptionID *id.ID
ReceptionSalt []byte
ReceptionRSA *rsa.PrivateKey
Precanned bool
// Timestamp in which user has registered with the network
RegistrationTimestamp int64
RegCode string
TransmissionRegValidationSig []byte
ReceptionRegValidationSig []byte
//e2e Identity
E2eDhPrivateKey *cyclic.Int
E2eDhPublicKey *cyclic.Int
}
......@@ -16,6 +16,28 @@ import (
"gitlab.com/xx_network/primitives/id"
)
type Proto struct {
//General Identity
TransmissionID *id.ID
TransmissionSalt []byte
TransmissionRSA *rsa.PrivateKey
ReceptionID *id.ID
ReceptionSalt []byte
ReceptionRSA *rsa.PrivateKey
Precanned bool
// Timestamp in which user has registered with the network
RegistrationTimestamp int64
RegCode string
TransmissionRegValidationSig []byte
ReceptionRegValidationSig []byte
//e2e Identity
E2eDhPrivateKey *cyclic.Int
E2eDhPublicKey *cyclic.Int
}
type Info struct {
//General Identity
TransmissionID *id.ID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment