2020-05-16 03:48:05 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace chestcrypto{
|
|
|
|
|
|
|
|
namespace identity {
|
|
|
|
internal class Identity {
|
|
|
|
private DoublePrivateKey privateKey;
|
|
|
|
private DoublePublicKey publicKey;
|
2020-05-21 09:05:32 +00:00
|
|
|
private bool hasPrivate = false;
|
2020-05-16 03:48:05 +00:00
|
|
|
|
|
|
|
private List<EphemeralKey> ephemeralKeys = new List<EphemeralKey>();
|
|
|
|
|
|
|
|
public DoublePublicKey getDoublePublicKey(){return publicKey;}
|
2020-05-21 09:05:32 +00:00
|
|
|
public DoublePrivateKey getDoublePrivateKey(){return privateKey;}
|
2020-05-16 03:48:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
public Identity(){}
|
|
|
|
public Identity (List<EphemeralKey> ephemeralKeys){
|
|
|
|
|
|
|
|
}
|
|
|
|
public Identity(DoublePublicKey publicKey){
|
2020-05-17 07:49:36 +00:00
|
|
|
this.publicKey = publicKey;
|
2020-05-16 03:48:05 +00:00
|
|
|
}
|
|
|
|
public Identity(DoublePrivateKey privateKey){
|
2020-05-21 09:05:32 +00:00
|
|
|
this.privateKey = privateKey;
|
2020-05-16 03:48:05 +00:00
|
|
|
}
|
|
|
|
public Identity(DoublePrivateKey privateKey, List<EphemeralKey> ephemeralKeys){
|
|
|
|
|
|
|
|
}
|
|
|
|
public Identity(DoublePublicKey publicKey, List<EphemeralKey> ephemeralKeys){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|