IsClaimType returns whether this blob builder is for a type which should be signed. (a "claim" or "permanode")
()
| 528 | // IsClaimType returns whether this blob builder is for a type |
| 529 | // which should be signed. (a "claim" or "permanode") |
| 530 | func (bb *Builder) IsClaimType() bool { |
| 531 | switch bb.Type() { |
| 532 | case TypeClaim, TypePermanode: |
| 533 | return true |
| 534 | } |
| 535 | return false |
| 536 | } |
| 537 | |
| 538 | // SetClaimDate sets the "claimDate" on a claim. |
| 539 | // It is a fatal error to call SetClaimDate if the Map isn't of Type "claim". |