Merge pull request #2594 from reaperhulk/hash-bc

implement hash on basicconstraints