Signature.create Sync

var signature = Signature.create(name, email, time, offset);
ParametersType 
nameStringname of the person
emailStringemail of the person
timeNumbertime (in seconds from epoch) when the action happened
offsetNumbertimezone offset (in minutes) for the time
Returns 
Signaturenew signature, in case of error NULL

Signature.default Async

Signature.default(repo).then(function(signature) {
  // Use signature
});
ParametersType 
repoRepositoryrepository pointer
Returns 
Signaturenew signature

Signature.fromBuffer Async

Signature.fromBuffer(buf).then(function(signature) {
  // Use signature
});
ParametersType 
bufStringsignature string
Returns 
Signaturenew signature

Signature.now Sync

var signature = Signature.now(name, email);
ParametersType 
nameStringname of the person
emailStringemail of the person
Returns 
Signaturenew signature, in case of error NULL

Signature#toString Sync

var string = signature.toString(withTime);

Standard string representation of an author.

ParametersType 
withTimeBooleanWhether or not to include timestamp
Returns 
StringRepresentation of the author.

Instance Variables

VariableTypeDescription
emailString 
nameString 
whenTime